Tempus Version of the Day
Time Integration
Loading...
Searching...
No Matches
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
17namespace Tempus {
18
30template<class Scalar>
32 : virtual public Tempus::StepperHHTAlphaAppAction<Scalar>
33{
34private:
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(
47 Teuchos::RCP<SolutionHistory<Scalar> > sh,
48 Teuchos::RCP<StepperHHTAlpha<Scalar> > stepper,
50 { this->observe(sh, stepper, actLoc); }
51
52public:
53
55 virtual void observe(
56 Teuchos::RCP<const SolutionHistory<Scalar> > /* sh */,
57 Teuchos::RCP<const StepperHHTAlpha<Scalar> > /* stepper */,
59
60};
61
62} // namespace Tempus
63
64#endif // Tempus_StepperHHTAlphaObserverBase_hpp
ACTION_LOCATION
Indicates the location of application action (see algorithm).
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.
virtual void observe(Teuchos::RCP< const SolutionHistory< Scalar > >, Teuchos::RCP< const StepperHHTAlpha< Scalar > >, const typename StepperHHTAlphaAppAction< Scalar >::ACTION_LOCATION actLoc)=0
Observe HHTAlpha Stepper.