9 #ifndef Tempus_IntegratorObserverLogging_decl_hpp
10 #define Tempus_IntegratorObserverLogging_decl_hpp
22 template<
class Scalar>
63 Teuchos::RCP<const std::map<std::string,int> >
getCounters();
65 Teuchos::RCP<const std::list<std::string> >
getOrder();
88 void logCall(
const std::string call)
const;
90 Teuchos::RCP< std::map<std::string,int> >
counters_;
91 Teuchos::RCP< std::list<std::string> >
order_;
96 #endif // Tempus_IntegratorObserverLogging_decl_hpp
Teuchos::RCP< const std::list< std::string > > getOrder()
virtual void observeNextTimeStep(const Integrator< Scalar > &integrator) override
Observe after the next time step size is selected.
Teuchos::RCP< std::list< std::string > > order_
const std::string nameObserveEndIntegrator_
Teuchos::RCP< std::map< std::string, int > > counters_
IntegratorObserverLogging()
Constructor.
const std::string nameObserveNextTimeStep_
virtual void observeBeforeTakeStep(const Integrator< Scalar > &integrator) override
Observe before Stepper takes step.
const std::string nameObserveEndTimeStep_
const std::string nameObserveAfterCheckTimeStep_
void logCall(const std::string call) const
Asserts next call on the stack is correct and removes from stack.
virtual void observeAfterCheckTimeStep(const Integrator< Scalar > &integrator) override
Observe after checking time step.
const std::string nameObserveStartIntegrator_
virtual void observeEndTimeStep(const Integrator< Scalar > &integrator) override
Observe the end of the time step loop.
This observer logs calls to observer functions. This observer simply logs and counts the calls to eac...
IntegratorObserver class for time integrators.
const std::string nameObserveBeforeTakeStep_
virtual ~IntegratorObserverLogging()
Destructor.
Thyra Base interface for time integrators. Time integrators are designed to advance the solution from...
virtual void observeAfterTakeStep(const Integrator< Scalar > &integrator) override
Observe after Stepper takes step.
virtual void observeEndIntegrator(const Integrator< Scalar > &integrator) override
Observe the end of the time integrator.
const std::string nameObserveAfterTakeStep_
const std::string nameObserveStartTimeStep_
Teuchos::RCP< const std::map< std::string, int > > getCounters()
virtual void observeStartIntegrator(const Integrator< Scalar > &integrator) override
Observe the beginning of the time integrator.
virtual void observeStartTimeStep(const Integrator< Scalar > &integrator) override
Observe the beginning of the time step loop.