9 #ifndef Tempus_StepperOperatorSplit_decl_hpp
10 #define Tempus_StepperOperatorSplit_decl_hpp
12 #include "Tempus_config.hpp"
13 #include "Tempus_Stepper.hpp"
38 template<
class Scalar>
52 std::vector<Teuchos::RCP<
const Thyra::ModelEvaluator<Scalar> > > appModels,
56 std::string ICConsistency,
57 bool ICConsistencyCheck,
65 const Teuchos::RCP<
const Thyra::ModelEvaluator<Scalar> >& appModel);
68 const Teuchos::RCP<Thyra::ModelEvaluator<Scalar> >& appModel);
70 virtual Teuchos::RCP<const Thyra::ModelEvaluator<Scalar> >
74 Teuchos::RCP<Thyra::NonlinearSolverBase<Scalar> > solver);
76 virtual Teuchos::RCP<Thyra::NonlinearSolverBase<Scalar> >
getSolver()
const
77 {
return Teuchos::null; }
82 virtual Teuchos::RCP<StepperObserver<Scalar> >
getObserver()
const
101 Teuchos::RCP<
const Thyra::VectorBase<Scalar> > ){}
111 {
return Scalar(1.0e+99);}
119 typename std::vector<Teuchos::RCP<Stepper<Scalar> > >::const_iterator
122 if ( (*subStepperIter)->isExplicit() ) isExplicit =
true;
129 typename std::vector<Teuchos::RCP<Stepper<Scalar> > >::const_iterator
132 if ( (*subStepperIter)->isImplicit() ) isImplicit =
true;
141 typename std::vector<Teuchos::RCP<Stepper<Scalar> > >::const_iterator
144 if ( !(*subStepperIter)->isOneStepMethod() ) isOneStepMethod =
false;
157 virtual void describe(Teuchos::FancyOStream & out,
158 const Teuchos::EVerbosityLevel verbLevel)
const;
171 bool useFSAL =
false)
173 stepper->setUseFSAL(useFSAL);
183 std::vector<Teuchos::RCP<
const Thyra::ModelEvaluator<Scalar> > > appModels);
199 #endif // Tempus_StepperOperatorSplit_decl_hpp
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.
virtual void setOrderMin(Scalar o)
virtual Scalar getInitTimeStep(const Teuchos::RCP< SolutionHistory< Scalar > > &) const
virtual Teuchos::RCP< const Thyra::ModelEvaluator< Scalar > > getModel()
virtual void setObserver(Teuchos::RCP< StepperObserver< Scalar > > obs=Teuchos::null)
Set Observer.
std::vector< Teuchos::RCP< Stepper< Scalar > > > subStepperList_
virtual bool isOneStepMethod() const
virtual void describe(Teuchos::FancyOStream &out, const Teuchos::EVerbosityLevel verbLevel) const
virtual void setModel(const Teuchos::RCP< const Thyra::ModelEvaluator< Scalar > > &appModel)
virtual void setNonConstModel(const Teuchos::RCP< Thyra::ModelEvaluator< Scalar > > &appModel)
virtual void setSolver(Teuchos::RCP< Thyra::NonlinearSolverBase< Scalar > > solver)
Set solver.
virtual Scalar getOrder() const
virtual Teuchos::RCP< Tempus::StepperState< Scalar > > getDefaultStepperState()
Get a default (initial) StepperState.
virtual void setModels(std::vector< Teuchos::RCP< const Thyra::ModelEvaluator< Scalar > > > appModels)
virtual bool isExplicit() const
virtual void setOrder(Scalar o)
virtual Scalar getOrderMax() const
OperatorSplit stepper loops through the Stepper list.
Thyra Base interface for time steppers.
virtual void clearSubStepperList()
virtual bool isMultiStepMethod() const
StepperOperatorSplit()
Default constructor.
Teuchos::RCP< SolutionState< Scalar > > tempState_
virtual bool isImplicit() const
virtual void setTempState(Teuchos::RCP< Tempus::SolutionState< Scalar >> state)
virtual bool isExplicitImplicit() const
Teuchos::RCP< const Teuchos::ParameterList > getValidParameters() const
StepperObserver class for Stepper class.
Teuchos::RCP< SolutionHistory< Scalar > > solutionHistory(Teuchos::RCP< Teuchos::ParameterList > pList=Teuchos::null)
Nonmember constructor.
virtual void setStepperList(std::vector< Teuchos::RCP< Stepper< Scalar > > > sl)
SolutionHistory is basically a container of SolutionStates. SolutionHistory maintains a collection of...
Teuchos::RCP< StepperOperatorSplitObserver< Scalar > > stepperOSObserver_
virtual void setInitialConditions(const Teuchos::RCP< SolutionHistory< Scalar > > &solutionHistory)
Set the initial conditions and make them consistent.
Teuchos::RCP< SolutionHistory< Scalar > > OpSpSolnHistory_
Stepper integrates first-order ODEs.
virtual void setOrderMax(Scalar o)
virtual Teuchos::RCP< StepperObserver< Scalar > > getObserver() const
Get Observer.
virtual Scalar getOrderMin() const
virtual OrderODE getOrderODE() const
virtual void takeStep(const Teuchos::RCP< SolutionHistory< Scalar > > &solutionHistory)
Take the specified timestep, dt, and return true if successful.
virtual void initialize()
Initialize during construction and after changing input parameters.
Solution state for integrators and steppers. SolutionState contains the metadata for solutions and th...
virtual std::vector< Teuchos::RCP< Stepper< Scalar > > > getStepperList() const
virtual void addStepper(Teuchos::RCP< Stepper< Scalar > > stepper, bool useFSAL=false)
Add Stepper to subStepper list. In most cases, subSteppers cannot use xDotOld (thus the default)...
virtual void setSubStepperList(std::vector< Teuchos::RCP< Stepper< Scalar > > > subStepperList)