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 () |
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... | |
Public Member Functions inherited from Tempus::IntegratorObserver< Scalar > | |
virtual | ~IntegratorObserver ()=default |
default destructor More... | |
Public Attributes | |
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_ |
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_ |
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 23 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.
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.
|
overridevirtual |
Observe after checking time step.
Implements Tempus::IntegratorObserver< Scalar >.
Definition at line 63 of file Tempus_IntegratorObserverLogging_impl.hpp.
|
overridevirtual |
Observe after Stepper takes step.
Implements Tempus::IntegratorObserver< Scalar >.
Definition at line 58 of file Tempus_IntegratorObserverLogging_impl.hpp.
|
overridevirtual |
Observe before Stepper takes step.
Implements Tempus::IntegratorObserver< Scalar >.
Definition at line 53 of file Tempus_IntegratorObserverLogging_impl.hpp.
|
overridevirtual |
Observe the end of the time integrator.
Implements Tempus::IntegratorObserver< Scalar >.
Definition at line 73 of file Tempus_IntegratorObserverLogging_impl.hpp.
|
overridevirtual |
Observe the end of the time step loop.
Implements Tempus::IntegratorObserver< Scalar >.
Definition at line 68 of file Tempus_IntegratorObserverLogging_impl.hpp.
|
overridevirtual |
Observe after the next time step size is selected.
Implements Tempus::IntegratorObserver< Scalar >.
Definition at line 48 of file Tempus_IntegratorObserverLogging_impl.hpp.
|
overridevirtual |
Observe the beginning of the time integrator.
Implements Tempus::IntegratorObserver< Scalar >.
Definition at line 38 of file Tempus_IntegratorObserverLogging_impl.hpp.
|
overridevirtual |
Observe the beginning of the time step loop.
Implements Tempus::IntegratorObserver< Scalar >.
Definition at line 43 of file Tempus_IntegratorObserverLogging_impl.hpp.
void Tempus::IntegratorObserverLogging< Scalar >::resetLogCounters | ( | ) |
Definition at line 77 of file Tempus_IntegratorObserverLogging_impl.hpp.
|
private |
Definition at line 90 of file Tempus_IntegratorObserverLogging_decl.hpp.
const std::string Tempus::IntegratorObserverLogging< Scalar >::nameObserveAfterCheckTimeStep_ |
Definition at line 76 of file Tempus_IntegratorObserverLogging_decl.hpp.
const std::string Tempus::IntegratorObserverLogging< Scalar >::nameObserveAfterTakeStep_ |
Definition at line 75 of file Tempus_IntegratorObserverLogging_decl.hpp.
const std::string Tempus::IntegratorObserverLogging< Scalar >::nameObserveBeforeTakeStep_ |
Definition at line 74 of file Tempus_IntegratorObserverLogging_decl.hpp.
const std::string Tempus::IntegratorObserverLogging< Scalar >::nameObserveEndIntegrator_ |
Definition at line 78 of file Tempus_IntegratorObserverLogging_decl.hpp.
const std::string Tempus::IntegratorObserverLogging< Scalar >::nameObserveEndTimeStep_ |
Definition at line 77 of file Tempus_IntegratorObserverLogging_decl.hpp.
const std::string Tempus::IntegratorObserverLogging< Scalar >::nameObserveNextTimeStep_ |
Definition at line 73 of file Tempus_IntegratorObserverLogging_decl.hpp.
const std::string Tempus::IntegratorObserverLogging< Scalar >::nameObserveStartIntegrator_ |
Definition at line 71 of file Tempus_IntegratorObserverLogging_decl.hpp.
const std::string Tempus::IntegratorObserverLogging< Scalar >::nameObserveStartTimeStep_ |
Definition at line 72 of file Tempus_IntegratorObserverLogging_decl.hpp.
|
private |
Definition at line 91 of file Tempus_IntegratorObserverLogging_decl.hpp.