Tempus  Version of the Day
Time Integration
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Tempus_StepperNewmarkImplicitAFormAppActionComposite.hpp
Go to the documentation of this file.
1 // @HEADER
2 // ****************************************************************************
3 // Tempus: Copyright (2017) Sandia Corporation
4 //
5 // Distributed under BSD 3-clause license (See accompanying file Copyright.txt)
6 // ****************************************************************************
7 // @HEADER
8 
9 #ifndef Tempus_StepperNewmarkImplicitAFormAppActionComposite_hpp
10 #define Tempus_StepperNewmarkImplicitAFormAppActionComposite_hpp
11 
12 #include "Tempus_config.hpp"
14 #include "Tempus_TimeStepControl.hpp"
15 #include <vector>
16 
17 namespace Tempus {
18 
24 template<class Scalar>
26  : virtual public Tempus::StepperNewmarkImplicitAFormAppAction<Scalar>
27 {
28 public:
29 
32 
35 
37  virtual void execute(
41  {
42  for(auto& a : appActions_)
43  a->execute(sh, stepper, actLoc);
44  }
45 
46  // Add AppAction to the AppAction vector.
48  {
49  appActions_.push_back(appAction);
50  }
51 
52  // Clear the AppAction vector.
53  void clearAppActions();
54  { appActions_.clear();}
55 
56  // Return the size of the AppAction vector.
57  std::size_t getSize() const { return appActions_.size(); }
58 
59 private:
60 
61  std::vector<Teuchos::RCP<StepperNewmarkImplicitAFormAppAction<Scalar > > > appActions_;
62 
63 };
64 
65 } // namespace Tempus
66 #endif // Tempus_StepperNewmarkImplicitAFormAppActionComposite_hpp
Application Action for StepperNewmarkImplicitAForm.
virtual void execute(Teuchos::RCP< SolutionHistory< Scalar > > sh, Teuchos::RCP< StepperNewmarkImplicitAForm< Scalar > > stepper, const typename StepperNewmarkImplicitAFormAppAction< Scalar >::ACTION_LOCATION actLoc)
Execute application action for NewmarkImplicitAForm Stepper.
SolutionHistory is basically a container of SolutionStates. SolutionHistory maintains a collection of...
StepperNewmarkImplicitAFormAppActionComposite()
Default constructor.
virtual ~StepperNewmarkImplicitAFormAppActionComposite()
Destructor.
std::vector< Teuchos::RCP< StepperNewmarkImplicitAFormAppAction< Scalar > > > appActions_
ACTION_LOCATION
Indicates the location of application action (see algorithm).
void addNewmarkImplicitAFormAppAction(Teuchos::RCP< StepperNewmarkImplicitAFormAppAction< Scalar > > appAction)
Newmark time stepper in acceleration form (a-form).