9 #ifndef Tempus_IntegratorObserverSubcycling_impl_hpp
10 #define Tempus_IntegratorObserverSubcycling_impl_hpp
12 #include "Tempus_Stepper.hpp"
16 template <
class Scalar>
21 template <
class Scalar>
26 template <
class Scalar>
33 *out <<
"\n Begin Subcycling "
34 "-------------------------------------------------------\n";
40 template <
class Scalar>
46 template <
class Scalar>
52 template <
class Scalar>
58 template <
class Scalar>
64 template <
class Scalar>
70 template <
class Scalar>
77 if ((cs->getOutputScreen() ==
true) || (cs->getOutput() ==
true) ||
86 *out << std::scientific << std::setw(6) << std::setprecision(3)
87 << cs->getIndex() << std::setw(11) << std::setprecision(3)
88 << cs->getTime() << std::setw(11) << std::setprecision(3)
89 << cs->getTimeStep() << std::setw(11) << std::setprecision(3)
90 << cs->getErrorAbs() << std::setw(11) << std::setprecision(3)
91 << cs->getErrorRel() << std::fixed << std::setw(7)
92 << std::setprecision(1) << cs->getOrder() << std::scientific
93 << std::setw(7) << std::setprecision(3) << cs->getNFailures()
94 << std::setw(11) << std::setprecision(3) << steppertime << std::endl;
98 template <
class Scalar>
105 *out <<
" End Subcycling "
106 "---------------------------------------------------------\n\n";
110 #endif // Tempus_IntegratorObserverSubcycling_impl_hpp
virtual void observeEndIntegrator(const Integrator< Scalar > &integrator) override
Observe the end of the time integrator.
virtual Teuchos::RCP< Teuchos::Time > getStepperTimer() const =0
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 Teuchos::RCP< const TimeStepControl< Scalar > > getTimeStepControl() const =0
Returns the TimeStepControl for this Integrator.
virtual void observeAfterCheckTimeStep(const Integrator< Scalar > &integrator) override
virtual void observeStartTimeStep(const Integrator< Scalar > &integrator) override
Observe the beginning of the time step loop.
virtual ~IntegratorObserverSubcycling()
Destructor.
basic_FancyOStream & setOutputToRootOnly(const int rootRank)
virtual void observeStartIntegrator(const Integrator< Scalar > &integrator) override
Observe the beginning of the time integrator.
virtual void observeNextTimeStep(const Integrator< Scalar > &integrator) override
Observe after the next time step size is selected.
Thyra Base interface for time integrators. Time integrators are designed to advance the solution from...
IntegratorObserverSubcycling()
Constructor.
double totalElapsedTime(bool readCurrentTime=false) const
virtual RCP< FancyOStream > getOStream() const
virtual void observeEndTimeStep(const Integrator< Scalar > &integrator) override
Observe the end of the time step loop.
virtual Teuchos::RCP< const SolutionHistory< Scalar > > getSolutionHistory() const =0
Returns the SolutionHistory for this Integrator.