9 #ifndef Tempus_StepperExplicit_decl_hpp
10 #define Tempus_StepperExplicit_decl_hpp
13 #include "Tempus_Stepper.hpp"
16 template<
class Scalar>
40 template<
class Scalar>
48 const Teuchos::RCP<
const Thyra::ModelEvaluator<Scalar> >& appModel);
50 const Teuchos::RCP<Thyra::ModelEvaluator<Scalar> >& appModel);
51 virtual Teuchos::RCP<const Thyra::ModelEvaluator<Scalar> >
56 {
return std::numeric_limits<Scalar>::max();}
63 Teuchos::RCP<Thyra::NonlinearSolverBase<Scalar> > solver = Teuchos::null);
65 virtual Teuchos::RCP<Thyra::NonlinearSolverBase<Scalar> >
getSolver()
const
66 {
return Teuchos::null; }
71 Teuchos::RCP<
const Thyra::VectorBase<Scalar> > ){}
81 virtual void setStepperX(Teuchos::RCP<Thyra::VectorBase<Scalar> > x)
91 virtual Teuchos::RCP<Thyra::VectorBase<Scalar> >
getStepperX(
102 Teuchos::RCP< Thyra::VectorBase<Scalar> > xDot,
103 Teuchos::RCP<
const Thyra::VectorBase<Scalar> > x,
109 Teuchos::RCP< Thyra::VectorBase<Scalar> > xDotDot,
110 Teuchos::RCP<
const Thyra::VectorBase<Scalar> > x,
111 Teuchos::RCP<
const Thyra::VectorBase<Scalar> > xDot,
119 Teuchos::RCP<const Thyra::ModelEvaluator<Scalar> >
appModel_;
121 Thyra::ModelEvaluatorBase::InArgs<Scalar>
inArgs_;
122 Thyra::ModelEvaluatorBase::OutArgs<Scalar>
outArgs_;
133 #endif // Tempus_StepperExplicit_decl_hpp
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.
Teuchos::RCP< Thyra::VectorBase< Scalar > > stepperXDot_
virtual bool isExplicit() 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.
ExplicitODEParameters(Scalar timeStepSize, int stageNumber=0)
Constructor.
virtual Teuchos::RCP< Thyra::VectorBase< Scalar > > getStepperXDotDot(Teuchos::RCP< SolutionState< Scalar > > state)
Get xDotDot from SolutionState or Stepper storage.
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 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 void setNonConstModel(const Teuchos::RCP< Thyra::ModelEvaluator< Scalar > > &appModel)
virtual void evaluateExplicitODE(Teuchos::RCP< Thyra::VectorBase< Scalar > > xDot, Teuchos::RCP< const Thyra::VectorBase< Scalar > > x, const Scalar time, const Teuchos::RCP< ExplicitODEParameters< Scalar > > &p)
Evaluate xDot = f(x,t).
virtual void setSolver(Teuchos::RCP< Thyra::NonlinearSolverBase< Scalar > > solver=Teuchos::null)
Set solver.
virtual bool isExplicitImplicit() const
virtual bool isMultiStepMethod() const
virtual bool isOneStepMethod() const
Thyra::ModelEvaluatorBase::InArgs< Scalar > inArgs_
ExplicitODEParameters()
Constructor.
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.