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. More... | |
virtual | ~IntegratorObserverLogging () |
Destructor. More... | |
void | resetLogCounters () |
Teuchos::RCP< const std::map < std::string, int > > | getCounters () |
Teuchos::RCP< const std::list < std::string > > | getOrder () |
Public Member Functions inherited from Tempus::IntegratorObserver< Scalar > | |
virtual | ~IntegratorObserver ()=default |
default destructor More... | |
Private Member Functions | |
void | logCall (const std::string call) const |
Asserts next call on the stack is correct and removes from stack. More... | |
Private Attributes | |
Teuchos::RCP< std::map < std::string, int > > | counters_ |
Teuchos::RCP< std::list < std::string > > | order_ |
Override IntegratorObserver basic methods | |
virtual void | observeStartIntegrator (const Integrator< Scalar > &integrator) override |
Observe the beginning of the time integrator. More... | |
virtual void | observeStartTimeStep (const Integrator< Scalar > &integrator) override |
Observe the beginning of the time step loop. More... | |
virtual void | observeNextTimeStep (const Integrator< Scalar > &integrator) override |
Observe after the next time step size is selected. More... | |
virtual void | observeBeforeTakeStep (const Integrator< Scalar > &integrator) override |
Observe before Stepper takes step. More... | |
virtual void | observeAfterTakeStep (const Integrator< Scalar > &integrator) override |
Observe after Stepper takes step. More... | |
virtual void | observeAfterCheckTimeStep (const Integrator< Scalar > &integrator) override |
Observe after checking time step. More... | |
virtual void | observeEndTimeStep (const Integrator< Scalar > &integrator) override |
Observe the end of the time step loop. More... | |
virtual void | observeEndIntegrator (const Integrator< Scalar > &integrator) override |
Observe the end of the time integrator. More... | |
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_ |
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 25 of file Tempus_IntegratorObserverLogging_decl.hpp.
Tempus::IntegratorObserverLogging< Scalar >::IntegratorObserverLogging | ( | ) |
Constructor.
Definition at line 19 of file Tempus_IntegratorObserverLogging_impl.hpp.
|
virtual |
Destructor.
Definition at line 35 of file Tempus_IntegratorObserverLogging_impl.hpp.
|
overridevirtual |
Observe the beginning of the time integrator.
Implements Tempus::IntegratorObserver< Scalar >.
Definition at line 40 of file Tempus_IntegratorObserverLogging_impl.hpp.
|
overridevirtual |
Observe the beginning of the time step loop.
Implements Tempus::IntegratorObserver< Scalar >.
Definition at line 47 of file Tempus_IntegratorObserverLogging_impl.hpp.
|
overridevirtual |
Observe after the next time step size is selected.
Implements Tempus::IntegratorObserver< Scalar >.
Definition at line 54 of file Tempus_IntegratorObserverLogging_impl.hpp.
|
overridevirtual |
Observe before Stepper takes step.
Implements Tempus::IntegratorObserver< Scalar >.
Definition at line 61 of file Tempus_IntegratorObserverLogging_impl.hpp.
|
overridevirtual |
Observe after Stepper takes step.
Implements Tempus::IntegratorObserver< Scalar >.
Definition at line 68 of file Tempus_IntegratorObserverLogging_impl.hpp.
|
overridevirtual |
Observe after checking time step.
Implements Tempus::IntegratorObserver< Scalar >.
Definition at line 75 of file Tempus_IntegratorObserverLogging_impl.hpp.
|
overridevirtual |
Observe the end of the time step loop.
Implements Tempus::IntegratorObserver< Scalar >.
Definition at line 82 of file Tempus_IntegratorObserverLogging_impl.hpp.
|
overridevirtual |
Observe the end of the time integrator.
Implements Tempus::IntegratorObserver< Scalar >.
Definition at line 89 of file Tempus_IntegratorObserverLogging_impl.hpp.
void Tempus::IntegratorObserverLogging< Scalar >::resetLogCounters | ( | ) |
Definition at line 96 of file Tempus_IntegratorObserverLogging_impl.hpp.
Teuchos::RCP< const std::map< std::string, int > > Tempus::IntegratorObserverLogging< Scalar >::getCounters | ( | ) |
Definition at line 111 of file Tempus_IntegratorObserverLogging_impl.hpp.
Teuchos::RCP< const std::list< std::string > > Tempus::IntegratorObserverLogging< Scalar >::getOrder | ( | ) |
Definition at line 118 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 124 of file Tempus_IntegratorObserverLogging_impl.hpp.
const std::string Tempus::IntegratorObserverLogging< Scalar >::nameObserveStartIntegrator_ |
Definition at line 79 of file Tempus_IntegratorObserverLogging_decl.hpp.
const std::string Tempus::IntegratorObserverLogging< Scalar >::nameObserveStartTimeStep_ |
Definition at line 80 of file Tempus_IntegratorObserverLogging_decl.hpp.
const std::string Tempus::IntegratorObserverLogging< Scalar >::nameObserveNextTimeStep_ |
Definition at line 81 of file Tempus_IntegratorObserverLogging_decl.hpp.
const std::string Tempus::IntegratorObserverLogging< Scalar >::nameObserveBeforeTakeStep_ |
Definition at line 82 of file Tempus_IntegratorObserverLogging_decl.hpp.
const std::string Tempus::IntegratorObserverLogging< Scalar >::nameObserveAfterTakeStep_ |
Definition at line 83 of file Tempus_IntegratorObserverLogging_decl.hpp.
const std::string Tempus::IntegratorObserverLogging< Scalar >::nameObserveAfterCheckTimeStep_ |
Definition at line 84 of file Tempus_IntegratorObserverLogging_decl.hpp.
const std::string Tempus::IntegratorObserverLogging< Scalar >::nameObserveEndTimeStep_ |
Definition at line 85 of file Tempus_IntegratorObserverLogging_decl.hpp.
const std::string Tempus::IntegratorObserverLogging< Scalar >::nameObserveEndIntegrator_ |
Definition at line 86 of file Tempus_IntegratorObserverLogging_decl.hpp.
|
private |
Definition at line 97 of file Tempus_IntegratorObserverLogging_decl.hpp.
|
private |
Definition at line 98 of file Tempus_IntegratorObserverLogging_decl.hpp.