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: Time Integration and Sensitivity Analysis Package
4 //
5 // Copyright 2017 NTESS and the Tempus contributors.
6 // SPDX-License-Identifier: BSD-3-Clause
7 // *****************************************************************************
8 //@HEADER
9 
10 #ifndef Tempus_StepperHHTAlphaObserverBase_hpp
11 #define Tempus_StepperHHTAlphaObserverBase_hpp
12 
13 #include "Tempus_config.hpp"
14 #include "Tempus_SolutionHistory.hpp"
16 
17 namespace Tempus {
18 
30 template <class Scalar>
32  : virtual public Tempus::StepperHHTAlphaAppAction<Scalar> {
33  private:
34  /* \brief Adaptor execute function
35  *
36  * This is an adaptor function to bridge between the AppAction
37  * interface and this derived interface. It is meant to be private
38  * and non-virtual as deriving from this class should only need to
39  * implement the observe function.
40  *
41  * For the Observer interface, this adaptor simply "applies" constantness
42  * to the arguments.
43  */
44  void execute(
48  {
49  this->observe(sh, stepper, actLoc);
50  }
51 
52  public:
54  virtual void observe(
55  Teuchos::RCP<const SolutionHistory<Scalar> > /* sh */,
56  Teuchos::RCP<const StepperHHTAlpha<Scalar> > /* stepper */,
58  actLoc) = 0;
59 };
60 
61 } // namespace Tempus
62 
63 #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).