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 
17 namespace Tempus {
18 
30 template<class Scalar>
32  : virtual public Tempus::StepperHHTAlphaAppAction<Scalar>
33 {
34 private:
35 
36  /* \brief Adaptor execute function
37  *
38  * This is an adaptor function to bridge between the AppAction
39  * interface and this derived interface. It is meant to be private
40  * and non-virtual as deriving from this class should only need to
41  * implement the observe function.
42  *
43  * For the Observer interface, this adaptor simply "applies" constantness
44  * to the arguments.
45  */
46  void execute(
50  { this->observe(sh, stepper, actLoc); }
51 
52 public:
53 
55  virtual void observe(
56  Teuchos::RCP<const SolutionHistory<Scalar> > /* sh */,
57  Teuchos::RCP<const StepperHHTAlpha<Scalar> > /* stepper */,
58  const typename StepperHHTAlphaAppAction<Scalar>::ACTION_LOCATION actLoc) = 0;
59 
60 };
61 
62 } // namespace Tempus
63 
64 #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).