9 #ifndef Tempus_StepperExplicit_decl_hpp
10 #define Tempus_StepperExplicit_decl_hpp
13 #include "Tempus_Stepper.hpp"
22 template<
class Scalar>
30 const Teuchos::RCP<
const Thyra::ModelEvaluator<Scalar> >& appModel);
32 const Teuchos::RCP<Thyra::ModelEvaluator<Scalar> >& appModel);
33 virtual Teuchos::RCP<const Thyra::ModelEvaluator<Scalar> >
38 {
return std::numeric_limits<Scalar>::max();}
45 virtual void setSolver(std::string solverName);
48 Teuchos::RCP<Teuchos::ParameterList> solverPL=Teuchos::null);
51 Teuchos::RCP<Thyra::NonlinearSolverBase<Scalar> > solver);
52 virtual Teuchos::RCP<Thyra::NonlinearSolverBase<Scalar> >
getSolver()
const
53 {
return Teuchos::null; }
56 {
return stepperPL_->get<std::string>(
"Stepper Type"); }
61 Teuchos::RCP<
const Thyra::VectorBase<Scalar> > ){}
71 {
return stepperPL_->get<
bool>(
"Use Embedded",
false); }
78 return stepperPL_->get<
bool>(
"Use FSAL", defaultUseFSAL);
82 {
stepperPL_->set<std::string>(
"Initial Condition Consistency", s);}
86 template get<std::string>(
"Initial Condition Consistency");
87 return stepperPL_->get<std::string>(
"Initial Condition Consistency",
88 defaultICConsistency);
92 {
stepperPL_->set<
bool>(
"Initial Condition Consistency Check", c);}
96 template get<bool>(
"Initial Condition Consistency Check");
97 return stepperPL_->get<
bool>(
"Initial Condition Consistency Check",
98 defaultICConsistencyCheck);
102 virtual void setStepperX(Teuchos::RCP<Thyra::VectorBase<Scalar> > x)
112 virtual Teuchos::RCP<Thyra::VectorBase<Scalar> >
getStepperX(
123 Teuchos::RCP< Thyra::VectorBase<Scalar> > xDot,
124 Teuchos::RCP<
const Thyra::VectorBase<Scalar> > x,
129 Teuchos::RCP< Thyra::VectorBase<Scalar> > xDotDot,
130 Teuchos::RCP<
const Thyra::VectorBase<Scalar> > x,
131 Teuchos::RCP<
const Thyra::VectorBase<Scalar> > xDot,
141 Teuchos::RCP<const Thyra::ModelEvaluator<Scalar> >
appModel_;
143 Thyra::ModelEvaluatorBase::InArgs<Scalar>
inArgs_;
144 Thyra::ModelEvaluatorBase::OutArgs<Scalar>
outArgs_;
155 #endif // Tempus_StepperExplicit_decl_hpp
virtual bool getEmbedded() const
virtual bool isImplicit() const
Teuchos::RCP< const Thyra::ModelEvaluator< Scalar > > appModel_
Explicit ODE ModelEvaluator.
virtual void setStepperX(Teuchos::RCP< Thyra::VectorBase< Scalar > > x)
Set x for Stepper storage.
virtual Teuchos::RCP< Thyra::VectorBase< Scalar > > getStepperXDot(Teuchos::RCP< SolutionState< Scalar > > state)
Get xDot from SolutionState or Stepper storage.
virtual std::string getStepperType() const
Teuchos::RCP< Thyra::VectorBase< Scalar > > stepperXDot_
virtual bool isExplicit() const
virtual std::string getICConsistency() const
virtual void setStepperXDot(Teuchos::RCP< Thyra::VectorBase< Scalar > > xDot)
Set xDot for Stepper storage.
Thyra::ModelEvaluatorBase::OutArgs< Scalar > outArgs_
Thyra Base interface for time steppers.
virtual void setICConsistency(std::string s)
virtual Teuchos::RCP< Thyra::VectorBase< Scalar > > getStepperXDotDot(Teuchos::RCP< SolutionState< Scalar > > state)
Get xDotDot from SolutionState or Stepper storage.
Teuchos::RCP< Teuchos::ParameterList > stepperPL_
virtual Teuchos::RCP< const Thyra::ModelEvaluator< Scalar > > getModel()
Teuchos::RCP< Thyra::VectorBase< Scalar > > stepperXDotDot_
virtual Scalar getInitTimeStep(const Teuchos::RCP< SolutionHistory< Scalar > > &) const
virtual void setUseFSAL(bool a)
virtual void setInitialConditions(const Teuchos::RCP< SolutionHistory< Scalar > > &solutionHistory)
Set the initial conditions, make them consistent, and set needed memory.
Teuchos::RCP< StepperObserver< Scalar > > stepperObserver_
Teuchos::RCP< SolutionHistory< Scalar > > solutionHistory(Teuchos::RCP< Teuchos::ParameterList > pList=Teuchos::null)
Nonmember constructor.
SolutionHistory is basically a container of SolutionStates. SolutionHistory maintains a collection of...
virtual void setModel(const Teuchos::RCP< const Thyra::ModelEvaluator< Scalar > > &appModel)
virtual Teuchos::RCP< Thyra::VectorBase< Scalar > > getStepperX(Teuchos::RCP< SolutionState< Scalar > > state)
Get x from SolutionState or Stepper storage.
virtual Teuchos::RCP< Thyra::NonlinearSolverBase< Scalar > > getSolver() const
Get solver.
virtual void setInitialGuess(Teuchos::RCP< const Thyra::VectorBase< Scalar > >)
Pass initial guess to Newton solver (only relevant for implicit solvers)
virtual bool getUseFSAL() const
virtual void setSolver(std::string solverName)
Set solver via ParameterList solver name.
virtual void setNonConstModel(const Teuchos::RCP< Thyra::ModelEvaluator< Scalar > > &appModel)
virtual bool isExplicitImplicit() const
virtual bool getICConsistencyCheck() const
virtual Teuchos::RCP< Teuchos::ParameterList > getDefaultParameters() const =0
virtual bool isMultiStepMethod() const
virtual void setICConsistencyCheck(bool c)
virtual bool isOneStepMethod() const
Thyra::ModelEvaluatorBase::InArgs< Scalar > inArgs_
virtual void evaluateExplicitODE(Teuchos::RCP< Thyra::VectorBase< Scalar > > xDot, Teuchos::RCP< const Thyra::VectorBase< Scalar > > x, const Scalar time)
Evaluate xDot = f(x,t).
Thyra Base interface for implicit time steppers.
Solution state for integrators and steppers. SolutionState contains the metadata for solutions and th...
Teuchos::RCP< Thyra::VectorBase< Scalar > > stepperX_
virtual void setStepperXDotDot(Teuchos::RCP< Thyra::VectorBase< Scalar > > xDotDot)
Set x for Stepper storage.