Tempus  Version of the Day
Time Integration
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Tempus_StepperNewmarkExplicitAFormAppActionComposite.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_StepperNewmarkExplicitAFormAppActionComposite_hpp
10 #define Tempus_StepperNewmarkExplicitAFormAppActionComposite_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::StepperNewmarkExplicitAFormAppAction<Scalar> {
27  public:
30 
33 
35  virtual void execute(
39  Scalar>::ACTION_LOCATION actLoc)
40  {
41  for (auto& a : appActions_) a->execute(sh, stepper, actLoc);
42  }
43 
44  // Add AppAction to the AppAction vector.
47  {
48  appActions_.push_back(appAction);
49  }
50 
51  // Clear the AppAction vector.
52  void clearAppActions();
53  {
54  appActions_.clear();
55  }
56 
57  // Return the size of the AppAction vector.
58  std::size_t getSize() const { return appActions_.size(); }
59 
60  private:
61  std::vector<Teuchos::RCP<StepperNewmarkExplicitAFormAppAction<Scalar> > >
63 };
64 
65 } // namespace Tempus
66 #endif // Tempus_StepperNewmarkExplicitAFormAppActionComposite_hpp
Application Action for StepperNewmarkExplicitAForm.
std::vector< Teuchos::RCP< StepperNewmarkExplicitAFormAppAction< Scalar > > > appActions_
ACTION_LOCATION
Indicates the location of application action (see algorithm).
SolutionHistory is basically a container of SolutionStates. SolutionHistory maintains a collection of...
virtual void execute(Teuchos::RCP< SolutionHistory< Scalar > > sh, Teuchos::RCP< StepperNewmarkExplicitAForm< Scalar > > stepper, const typename StepperNewmarkExplicitAFormAppAction< Scalar >::ACTION_LOCATION actLoc)
Execute application action for NewmarkExplicitAForm Stepper.
virtual ~StepperNewmarkExplicitAFormAppActionComposite()
Destructor.
void addNewmarkExplicitAFormAppAction(Teuchos::RCP< StepperNewmarkExplicitAFormAppAction< Scalar > > appAction)
StepperNewmarkExplicitAFormAppActionComposite()
Default constructor.