10#ifndef Tempus_IntegratorObserverLogging_impl_hpp
11#define Tempus_IntegratorObserverLogging_impl_hpp
14#include "Tempus_TimeStepControl.hpp"
18template <
class Scalar>
29 counters_ = Teuchos::rcp(
new std::map<std::string, int>);
30 order_ = Teuchos::rcp(
new std::list<std::string>);
34template <
class Scalar>
39template <
class Scalar>
46template <
class Scalar>
53template <
class Scalar>
60template <
class Scalar>
67template <
class Scalar>
74template <
class Scalar>
81template <
class Scalar>
88template <
class Scalar>
95template <
class Scalar>
109template <
class Scalar>
110Teuchos::RCP<const std::map<std::string, int> >
116template <
class Scalar>
117Teuchos::RCP<const std::list<std::string> >
123template <
class Scalar>
126 (*counters_)[call] += 1;
Thyra Base interface for time integrators. Time integrators are designed to advance the solution from...
Teuchos::RCP< const std::list< std::string > > getOrder()
virtual void observeAfterTakeStep(const Integrator< Scalar > &integrator) override
Observe after Stepper takes step.
const std::string nameObserveNextTimeStep_
const std::string nameObserveAfterCheckTimeStep_
const std::string nameObserveEndIntegrator_
IntegratorObserverLogging()
Constructor.
virtual ~IntegratorObserverLogging()
Destructor.
const std::string nameObserveEndTimeStep_
virtual void observeNextTimeStep(const Integrator< Scalar > &integrator) override
Observe after the next time step size is selected.
virtual void observeBeforeTakeStep(const Integrator< Scalar > &integrator) override
Observe before Stepper takes step.
virtual void observeStartTimeStep(const Integrator< Scalar > &integrator) override
Observe the beginning of the time step loop.
const std::string nameObserveStartTimeStep_
virtual void observeStartIntegrator(const Integrator< Scalar > &integrator) override
Observe the beginning of the time integrator.
Teuchos::RCP< const std::map< std::string, int > > getCounters()
void logCall(const std::string call) const
Asserts next call on the stack is correct and removes from stack.
Teuchos::RCP< std::map< std::string, int > > counters_
const std::string nameObserveStartIntegrator_
Teuchos::RCP< std::list< std::string > > order_
const std::string nameObserveAfterTakeStep_
virtual void observeEndIntegrator(const Integrator< Scalar > &integrator) override
Observe the end of the time integrator.
const std::string nameObserveBeforeTakeStep_
virtual void observeEndTimeStep(const Integrator< Scalar > &integrator) override
Observe the end of the time step loop.
virtual void observeAfterCheckTimeStep(const Integrator< Scalar > &integrator) override
Observe after checking time step.