9 #ifndef Tempus_StepperSubcycling_decl_hpp
10 #define Tempus_StepperSubcycling_decl_hpp
12 #include "Tempus_config.hpp"
13 #include "Tempus_StepperExplicit.hpp"
15 #include "Tempus_IntegratorBasic.hpp"
35 template<
class Scalar>
49 const Teuchos::RCP<
const Thyra::ModelEvaluator<Scalar> >& appModel,
53 std::string ICConsistency,
54 bool ICConsistencyCheck);
59 const Teuchos::RCP<
const Thyra::ModelEvaluator<Scalar> >& appModel);
62 const Teuchos::RCP<Thyra::ModelEvaluator<Scalar> >& appModel);
64 virtual Teuchos::RCP<const Thyra::ModelEvaluator<Scalar> >
70 virtual Teuchos::RCP<StepperObserver<Scalar> >
getObserver()
const;
85 Teuchos::RCP<
const Thyra::VectorBase<Scalar> > initial_guess);
88 Teuchos::RCP<Thyra::NonlinearSolverBase<Scalar> > solver = Teuchos::null);
90 virtual Teuchos::RCP<Thyra::NonlinearSolverBase<Scalar> >
getSolver()
const;
116 virtual void describe(Teuchos::FancyOStream & out,
117 const Teuchos::EVerbosityLevel verbLevel)
const;
146 #endif // Tempus_StepperSubcycling_decl_hpp
Teuchos::RCP< const Teuchos::ParameterList > getValidParameters() const
virtual bool isExplicitImplicit() const
virtual void setSubcyclingStepper(Teuchos::RCP< Stepper< Scalar > > stepper)
virtual void initialize()
Initialize during construction and after changing input parameters.
virtual void setSubcyclingMinTimeStep(Scalar MinTimeStep)
virtual void describe(Teuchos::FancyOStream &out, const Teuchos::EVerbosityLevel verbLevel) const
virtual void setSubcyclingScreenOutputIndexInterval(int i)
virtual void setSubcyclingMaxTimeStep(Scalar MaxTimeStep)
Teuchos::RCP< IntegratorBasic< Scalar > > scIntegrator_
virtual Teuchos::RCP< Tempus::StepperState< Scalar > > getDefaultStepperState()
Get a default (initial) StepperState.
virtual void takeStep(const Teuchos::RCP< SolutionHistory< Scalar > > &solutionHistory)
Take the specified timestep, dt, and return true if successful.
virtual bool isOneStepMethod() const
virtual void setSolver(Teuchos::RCP< Thyra::NonlinearSolverBase< Scalar > > solver=Teuchos::null)
Set solver.
virtual void setSubcyclingMaxConsecFailures(int MaxConsecFailures)
virtual void setSubcyclingTimeStepControlStrategy(Teuchos::RCP< TimeStepControlStrategy< Scalar > > tscs)
Thyra Base interface for time steppers.
Teuchos::RCP< StepperSubcyclingObserver< Scalar > > stepperSCObserver_
virtual bool isImplicit() const
virtual Scalar getOrderMax() const
virtual void setObserver(Teuchos::RCP< StepperObserver< Scalar > > obs=Teuchos::null)
Set Observer.
virtual Teuchos::RCP< Thyra::NonlinearSolverBase< Scalar > > getSolver() const
Get solver.
virtual void setSubcyclingStepType(std::string StepType)
virtual bool isExplicit() const
StepperObserver class for Stepper class.
virtual bool isMultiStepMethod() const
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 Scalar getInitTimeStep(const Teuchos::RCP< SolutionHistory< Scalar > > &solutionHistory) const
virtual void setSubcyclingInitTimeStep(Scalar InitTimeStep)
virtual void setInitialGuess(Teuchos::RCP< const Thyra::VectorBase< Scalar > > initial_guess)
Pass initial guess to Newton solver (only relevant for implicit solvers)
virtual Teuchos::RCP< const Thyra::ModelEvaluator< Scalar > > getModel()
virtual Scalar getOrderMin() const
virtual OrderODE getOrderODE() const
virtual Scalar getOrder() const
virtual void setModel(const Teuchos::RCP< const Thyra::ModelEvaluator< Scalar > > &appModel)
StepperSubcycling()
Default constructor.
StepperSubcyclingObserver class for StepperSubcycling.
StepControlStrategy class for TimeStepControl.
virtual void setInitialConditions(const Teuchos::RCP< SolutionHistory< Scalar > > &solutionHistory)
Set the initial conditions, make them consistent, and set needed memory.
virtual void setNonConstModel(const Teuchos::RCP< Thyra::ModelEvaluator< Scalar > > &appModel)
virtual Teuchos::RCP< StepperObserver< Scalar > > getObserver() const
Get Observer.
virtual void setSubcyclingMaxFailures(int MaxFailures)