29 #ifndef Rythmos_FIXED_STEP_CONTROL_STRATEGY_DECL_H
30 #define Rythmos_FIXED_STEP_CONTROL_STRATEGY_DECL_H
32 #include "Rythmos_StepControlStrategyBase.hpp"
47 template<
class Scalar>
48 class FixedStepControlStrategy
49 :
virtual public StepControlStrategyBase<Scalar>
53 typedef typename Teuchos::ScalarTraits<Scalar>::magnitudeType ScalarMag;
58 void setRequestedStepSize(
const StepperBase<Scalar>& stepper,
59 const Scalar& stepSize,
const StepSizeType& stepSizeType);
62 void nextStepSize(
const StepperBase<Scalar>& stepper, Scalar* stepSize,
63 StepSizeType* stepSizeType,
int* order);
67 const StepperBase<Scalar>& stepper
68 ,
const RCP<
const Thyra::VectorBase<Scalar> >& soln
69 ,
const RCP<
const Thyra::VectorBase<Scalar> >& ee
74 bool acceptStep(
const StepperBase<Scalar>& stepper, Scalar* LETValue);
77 void completeStep(
const StepperBase<Scalar>& stepper);
80 AttemptedStepStatusFlag rejectStep(
const StepperBase<Scalar>& stepper);
83 StepControlStrategyState getCurrentState();
86 int getMaxOrder()
const;
89 void setStepControlData(
const StepperBase<Scalar>& stepper);
92 bool supportsCloning()
const;
95 RCP<StepControlStrategyBase<Scalar> > cloneStepControlStrategyAlgorithm()
const;
99 FixedStepControlStrategy();
105 Teuchos::FancyOStream &out,
106 const Teuchos::EVerbosityLevel verbLevel
113 void setParameterList(RCP<Teuchos::ParameterList>
const& paramList);
116 RCP<Teuchos::ParameterList> getNonconstParameterList();
119 RCP<Teuchos::ParameterList> unsetParameterList();
122 RCP<const Teuchos::ParameterList> getValidParameters()
const;
126 void initialize(
const StepperBase<Scalar>& stepper);
133 StepControlStrategyState stepControlState_;
134 RCP<Teuchos::ParameterList> parameterList_;
138 void setStepControlState_(StepControlStrategyState state);
144 #endif // Rythmos_FIXED_STEP_CONTROL_STRATEGY_DECL_H