Tempus  Version of the Day
Time Integration
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Tempus_StepperHHTAlphaObserverBase.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_StepperHHTAlphaObserverBase_hpp
10 #define Tempus_StepperHHTAlphaObserverBase_hpp
11 
12 #include "Tempus_config.hpp"
13 #include "Tempus_SolutionHistory.hpp"
15 
16 namespace Tempus {
17 
29 template <class Scalar>
31  : virtual public Tempus::StepperHHTAlphaAppAction<Scalar> {
32  private:
33  /* \brief Adaptor execute function
34  *
35  * This is an adaptor function to bridge between the AppAction
36  * interface and this derived interface. It is meant to be private
37  * and non-virtual as deriving from this class should only need to
38  * implement the observe function.
39  *
40  * For the Observer interface, this adaptor simply "applies" constantness
41  * to the arguments.
42  */
43  void execute(
47  {
48  this->observe(sh, stepper, actLoc);
49  }
50 
51  public:
53  virtual void observe(
54  Teuchos::RCP<const SolutionHistory<Scalar> > /* sh */,
55  Teuchos::RCP<const StepperHHTAlpha<Scalar> > /* stepper */,
57  actLoc) = 0;
58 };
59 
60 } // namespace Tempus
61 
62 #endif // Tempus_StepperHHTAlphaObserverBase_hpp
virtual void observe(Teuchos::RCP< const SolutionHistory< Scalar > >, Teuchos::RCP< const StepperHHTAlpha< Scalar > >, const typename StepperHHTAlphaAppAction< Scalar >::ACTION_LOCATION actLoc)=0
Observe HHTAlpha Stepper.
SolutionHistory is basically a container of SolutionStates. SolutionHistory maintains a collection of...
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.
ACTION_LOCATION
Indicates the location of application action (see algorithm).