9 #ifndef Tempus_IntegratorObserverComposite_impl_hpp
10 #define Tempus_IntegratorObserverComposite_impl_hpp
13 #include "Tempus_TimeStepControl.hpp"
17 template<
class Scalar>
20 template<
class Scalar>
23 template<
class Scalar>
27 for(
auto& o : observers_)
28 o->observeStartIntegrator(integrator);
31 template<
class Scalar>
35 for(
auto& o : observers_)
36 o->observeStartTimeStep(integrator);
39 template<
class Scalar>
43 for(
auto& o : observers_)
44 o->observeNextTimeStep(integrator);
47 template<
class Scalar>
51 for(
auto& o : observers_)
52 o->observeBeforeTakeStep(integrator);
55 template<
class Scalar>
59 for(
auto& o : observers_)
60 o->observeAfterTakeStep(integrator);
63 template<
class Scalar>
67 for(
auto& o : observers_)
68 o->observeAfterCheckTimeStep(integrator);
71 template<
class Scalar>
75 for(
auto& o : observers_)
76 o->observeEndTimeStep(integrator);
79 template<
class Scalar>
83 for(
auto& o : observers_)
84 o->observeEndIntegrator(integrator);
87 template<
class Scalar>
91 observers_.push_back(observer);
94 template<
class Scalar>
99 #endif // Tempus_IntegratorObserverComposite_impl_hpp
virtual void observeBeforeTakeStep(const Integrator< Scalar > &integrator) override
Observe before Stepper takes step.
virtual ~IntegratorObserverComposite()
Destructor.
virtual void observeEndIntegrator(const Integrator< Scalar > &integrator) override
Observe the end of the time integrator.
void addObserver(const Teuchos::RCP< IntegratorObserver< Scalar > > &observer)
virtual void observeEndTimeStep(const Integrator< Scalar > &integrator) override
Observe the end of the time step loop.
IntegratorObserver class for time integrators.
IntegratorObserverComposite()
Default constructor.
Thyra Base interface for time integrators. Time integrators are designed to advance the solution from...
virtual void observeStartIntegrator(const Integrator< Scalar > &integrator) override
Observe the beginning of the time integrator.
virtual void observeAfterCheckTimeStep(const Integrator< Scalar > &integrator) override
Observe after checking time step.
virtual void observeAfterTakeStep(const Integrator< Scalar > &integrator) override
Observe after Stepper takes step.
virtual void observeStartTimeStep(const Integrator< Scalar > &integrator) override
Observe the beginning of the time step loop.
virtual void observeNextTimeStep(const Integrator< Scalar > &integrator) override
Observe after the next time step size is selected.