9 #ifndef Tempus_TimeStepControlStrategy_hpp
10 #define Tempus_TimeStepControlStrategy_hpp
12 #include "Tempus_config.hpp"
13 #include "Tempus_SolutionHistory.hpp"
18 template<
class Scalar>
class TimeStepControl;
30 template<
class Scalar>
46 #ifndef TEMPUS_HIDE_DEPRECATED_CODE
70 "Error - " << this->
description() <<
" is not initialized!");
82 {
return Teuchos::parameterList(); }
98 #endif // Tempus_TimeStepControlStrategy_hpp
virtual void initialize() const
virtual Teuchos::RCP< const Teuchos::ParameterList > getValidParameters() const
Return ParameterList with current values.
#define TEUCHOS_TEST_FOR_EXCEPTION(throw_exception_test, Exception, msg)
virtual void checkInitialized()
virtual void setNextTimeStep(const TimeStepControl< Scalar > &, Teuchos::RCP< SolutionHistory< Scalar > >, Status &)
Set the time step size.
virtual std::string getStrategyType() const
virtual std::string getName() const
virtual bool isInitialized()
Status
Status for the Integrator, the Stepper and the SolutionState.
virtual void setStepType(std::string s)
bool isInitialized_
Bool if strategy is initialized.
virtual std::string description() const
TimeStepControl manages the time step size. There several mechanisms that effect the time step size a...
virtual void setName(std::string s)
SolutionHistory is basically a container of SolutionStates. SolutionHistory maintains a collection of...
std::string strategyType_
Strategy type.
std::string stepType_
Step Type - "Constant" or "Variable".
virtual ~TimeStepControlStrategy()
Destructor.
TimeStepControlStrategy()
Constructor.
virtual void setStrategyType(std::string s)
TimeStepControlStrategy class for TimeStepControl.
virtual std::string getStepType() const
std::string name_
Name of strategy.
virtual RCP< FancyOStream > getOStream() const
virtual void describe(FancyOStream &out, const EVerbosityLevel verbLevel=verbLevel_default) const
virtual void getNextTimeStep(const TimeStepControl< Scalar > tsc, Teuchos::RCP< SolutionHistory< Scalar > > sh, Status &integratorStatus)
Deprecated get the time step size.