Tempus  Version of the Day
Time Integration
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Tempus_StepperHHTAlphaModifierBase.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_StepperHHTAlphaModifierBase_hpp
10 #define Tempus_StepperHHTAlphaModifierBase_hpp
11 
12 #include "Tempus_config.hpp"
13 #include "Tempus_SolutionHistory.hpp"
15 
16 
17 namespace Tempus {
18 
32 template<class Scalar>
34  : virtual public Tempus::StepperHHTAlphaAppAction<Scalar>
35 {
36 private:
37 
38  /* \brief Adaptor execute function
39  *
40  * This is an adaptor function to bridge between the AppAction
41  * interface and the Modifier interface. It is meant to be private
42  * and non-virtual as deriving from this class should only need to
43  * implement the modify function.
44  *
45  * For the Modifier interface, this adaptor is a "simple pass through".
46  */
47  void execute(
51  { this->modify(sh, stepper, actLoc); }
52 
53 public:
54 
56  virtual void modify(
58  Teuchos::RCP<StepperHHTAlpha<Scalar> > /* stepper */,
59  const typename StepperHHTAlphaAppAction<Scalar>::ACTION_LOCATION actLoc) = 0;
60 
61 };
62 
63 } // namespace Tempus
64 
65 #endif // Tempus_StepperHHTAlphaModifierBase_hpp
virtual void modify(Teuchos::RCP< SolutionHistory< Scalar > >, Teuchos::RCP< StepperHHTAlpha< Scalar > >, const typename StepperHHTAlphaAppAction< Scalar >::ACTION_LOCATION actLoc)=0
Modify HHT Alpha Stepper.
void execute(Teuchos::RCP< SolutionHistory< Scalar > > sh, Teuchos::RCP< StepperHHTAlpha< Scalar > > stepper, const typename StepperHHTAlphaAppAction< Scalar >::ACTION_LOCATION actLoc)
Execute application action for HHTAlpha Stepper.
SolutionHistory is basically a container of SolutionStates. SolutionHistory maintains a collection of...
ACTION_LOCATION
Indicates the location of application action (see algorithm).