Tempus Version of the Day
Time Integration
|
This observer logs calls to observer functions. This observer simply logs and counts the calls to each of the observer functions. This is useful in monirtoring and debugging the time integration. More...
#include <Tempus_IntegratorObserverLogging_decl.hpp>
Public Member Functions | |
IntegratorObserverLogging () | |
Constructor. | |
virtual | ~IntegratorObserverLogging () |
Destructor. | |
![]() | |
virtual | ~IntegratorObserver ()=default |
default destructor | |
String names logged in map | |
Use these strings to validate a call stack with this observer | |
const std::string | nameObserveStartIntegrator_ |
const std::string | nameObserveStartTimeStep_ |
const std::string | nameObserveNextTimeStep_ |
const std::string | nameObserveBeforeTakeStep_ |
const std::string | nameObserveAfterTakeStep_ |
const std::string | nameObserveAfterCheckTimeStep_ |
const std::string | nameObserveEndTimeStep_ |
const std::string | nameObserveEndIntegrator_ |
Teuchos::RCP< std::map< std::string, int > > | counters_ |
Teuchos::RCP< std::list< std::string > > | order_ |
void | logCall (const std::string call) const |
Asserts next call on the stack is correct and removes from stack. | |
Override IntegratorObserver basic methods | |
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. | |
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 | observeAfterTakeStep (const Integrator< Scalar > &integrator) override |
Observe after Stepper takes step. | |
virtual void | observeAfterCheckTimeStep (const Integrator< Scalar > &integrator) override |
Observe after checking time step. | |
virtual void | observeEndTimeStep (const Integrator< Scalar > &integrator) override |
Observe the end of the time step loop. | |
virtual void | observeEndIntegrator (const Integrator< Scalar > &integrator) override |
Observe the end of the time integrator. | |
void | resetLogCounters () |
Teuchos::RCP< const std::map< std::string, int > > | getCounters () |
Teuchos::RCP< const std::list< std::string > > | getOrder () |
This observer logs calls to observer functions. This observer simply logs and counts the calls to each of the observer functions. This is useful in monirtoring and debugging the time integration.
Definition at line 24 of file Tempus_IntegratorObserverLogging_decl.hpp.
Tempus::IntegratorObserverLogging< Scalar >::IntegratorObserverLogging | ( | ) |
Constructor.
Definition at line 18 of file Tempus_IntegratorObserverLogging_impl.hpp.
|
virtual |
Destructor.
Definition at line 34 of file Tempus_IntegratorObserverLogging_impl.hpp.
|
overridevirtual |
Observe the beginning of the time integrator.
Implements Tempus::IntegratorObserver< Scalar >.
Definition at line 37 of file Tempus_IntegratorObserverLogging_impl.hpp.
|
overridevirtual |
Observe the beginning of the time step loop.
Implements Tempus::IntegratorObserver< Scalar >.
Definition at line 42 of file Tempus_IntegratorObserverLogging_impl.hpp.
|
overridevirtual |
Observe after the next time step size is selected.
Implements Tempus::IntegratorObserver< Scalar >.
Definition at line 47 of file Tempus_IntegratorObserverLogging_impl.hpp.
|
overridevirtual |
Observe before Stepper takes step.
Implements Tempus::IntegratorObserver< Scalar >.
Definition at line 52 of file Tempus_IntegratorObserverLogging_impl.hpp.
|
overridevirtual |
Observe after Stepper takes step.
Implements Tempus::IntegratorObserver< Scalar >.
Definition at line 57 of file Tempus_IntegratorObserverLogging_impl.hpp.
|
overridevirtual |
Observe after checking time step.
Implements Tempus::IntegratorObserver< Scalar >.
Definition at line 62 of file Tempus_IntegratorObserverLogging_impl.hpp.
|
overridevirtual |
Observe the end of the time step loop.
Implements Tempus::IntegratorObserver< Scalar >.
Definition at line 67 of file Tempus_IntegratorObserverLogging_impl.hpp.
|
overridevirtual |
Observe the end of the time integrator.
Implements Tempus::IntegratorObserver< Scalar >.
Definition at line 72 of file Tempus_IntegratorObserverLogging_impl.hpp.
void Tempus::IntegratorObserverLogging< Scalar >::resetLogCounters | ( | ) |
Definition at line 77 of file Tempus_IntegratorObserverLogging_impl.hpp.
Teuchos::RCP< const std::map< std::string, int > > Tempus::IntegratorObserverLogging< Scalar >::getCounters | ( | ) |
Definition at line 92 of file Tempus_IntegratorObserverLogging_impl.hpp.
Teuchos::RCP< const std::list< std::string > > Tempus::IntegratorObserverLogging< Scalar >::getOrder | ( | ) |
Definition at line 97 of file Tempus_IntegratorObserverLogging_impl.hpp.
|
private |
Asserts next call on the stack is correct and removes from stack.
This is a const method so that it can be called from the derived IntegratorObserver methods that are const.
Definition at line 101 of file Tempus_IntegratorObserverLogging_impl.hpp.
const std::string Tempus::IntegratorObserverLogging< Scalar >::nameObserveStartIntegrator_ |
Definition at line 72 of file Tempus_IntegratorObserverLogging_decl.hpp.
const std::string Tempus::IntegratorObserverLogging< Scalar >::nameObserveStartTimeStep_ |
Definition at line 73 of file Tempus_IntegratorObserverLogging_decl.hpp.
const std::string Tempus::IntegratorObserverLogging< Scalar >::nameObserveNextTimeStep_ |
Definition at line 74 of file Tempus_IntegratorObserverLogging_decl.hpp.
const std::string Tempus::IntegratorObserverLogging< Scalar >::nameObserveBeforeTakeStep_ |
Definition at line 75 of file Tempus_IntegratorObserverLogging_decl.hpp.
const std::string Tempus::IntegratorObserverLogging< Scalar >::nameObserveAfterTakeStep_ |
Definition at line 76 of file Tempus_IntegratorObserverLogging_decl.hpp.
const std::string Tempus::IntegratorObserverLogging< Scalar >::nameObserveAfterCheckTimeStep_ |
Definition at line 77 of file Tempus_IntegratorObserverLogging_decl.hpp.
const std::string Tempus::IntegratorObserverLogging< Scalar >::nameObserveEndTimeStep_ |
Definition at line 78 of file Tempus_IntegratorObserverLogging_decl.hpp.
const std::string Tempus::IntegratorObserverLogging< Scalar >::nameObserveEndIntegrator_ |
Definition at line 79 of file Tempus_IntegratorObserverLogging_decl.hpp.
|
private |
Definition at line 91 of file Tempus_IntegratorObserverLogging_decl.hpp.
|
private |
Definition at line 92 of file Tempus_IntegratorObserverLogging_decl.hpp.