30 #ifndef RYTHMOS_STEP_CONTROL_STRATEGY_BASE_HPP 31 #define RYTHMOS_STEP_CONTROL_STRATEGY_BASE_HPP 34 #include "Rythmos_StepperBase.hpp" 46 enum AttemptedStepStatusFlag { PREDICT_AGAIN, CONTINUE_ANYWAY, REP_ERR_FAIL, REP_CONV_FAIL };
49 enum StepControlStrategyState { UNINITIALIZED, BEFORE_FIRST_STEP, MID_STEP, AFTER_CORRECTION, READY_FOR_NEXT_STEP };
73 template<
class Scalar>
75 :
virtual public Teuchos::Describable
76 ,
virtual public Teuchos::ParameterListAcceptor
77 ,
virtual public Teuchos::VerboseObject<StepControlStrategyBase<Scalar> >
87 ,
const Scalar& stepSize
88 ,
const StepSizeType& stepSizeType
95 , StepSizeType* stepSizeType
102 ,
const RCP<
const Thyra::VectorBase<Scalar> >& soln
103 ,
const RCP<
const Thyra::VectorBase<Scalar> >& ee
141 template<
class Scalar>
148 template<
class Scalar>
149 RCP<StepControlStrategyBase<Scalar> >
152 return Teuchos::null;
159 #endif // RYTHMOS_STEP_CONTROL_STRATEGY_BASE_HPP virtual AttemptedStepStatusFlag rejectStep(const StepperBase< Scalar > &stepper)=0
Base class for defining stepper functionality.
virtual void setCorrection(const StepperBase< Scalar > &stepper, const RCP< const Thyra::VectorBase< Scalar > > &soln, const RCP< const Thyra::VectorBase< Scalar > > &ee, int solveStatus)=0
virtual void setRequestedStepSize(const StepperBase< Scalar > &stepper, const Scalar &stepSize, const StepSizeType &stepSizeType)=0
virtual void nextStepSize(const StepperBase< Scalar > &stepper, Scalar *stepSize, StepSizeType *stepSizeType, int *order)=0
The member functions in the StepControlStrategyBase move you between these states in the following fa...
virtual void setStepControlData(const StepperBase< Scalar > &stepper)=0
virtual RCP< StepControlStrategyBase< Scalar > > cloneStepControlStrategyAlgorithm() const
virtual StepControlStrategyState getCurrentState()=0
virtual int getMaxOrder() const =0
virtual bool supportsCloning() const
virtual void completeStep(const StepperBase< Scalar > &stepper)=0
virtual void initialize(const StepperBase< Scalar > &stepper)=0
virtual bool acceptStep(const StepperBase< Scalar > &stepper, Scalar *LETValue)=0