9 #ifndef Tempus_StepperSubcycling_decl_hpp
10 #define Tempus_StepperSubcycling_decl_hpp
12 #include "Tempus_config.hpp"
13 #include "Tempus_StepperExplicit.hpp"
14 #ifndef TEMPUS_HIDE_DEPRECATED_CODE
18 #include "Tempus_IntegratorBasic.hpp"
38 template<
class Scalar>
50 #ifndef TEMPUS_HIDE_DEPRECATED_CODE
53 const Teuchos::RCP<
const Thyra::ModelEvaluator<Scalar> >& appModel,
57 std::string ICConsistency,
58 bool ICConsistencyCheck);
63 const Teuchos::RCP<
const Thyra::ModelEvaluator<Scalar> >& appModel,
66 std::string ICConsistency,
67 bool ICConsistencyCheck,
73 const Teuchos::RCP<
const Thyra::ModelEvaluator<Scalar> >& appModel);
76 const Teuchos::RCP<Thyra::ModelEvaluator<Scalar> >& appModel);
78 virtual Teuchos::RCP<const Thyra::ModelEvaluator<Scalar> >
81 #ifndef TEMPUS_HIDE_DEPRECATED_CODE
85 virtual Teuchos::RCP<StepperObserver<Scalar> >
getObserver()
const;
91 virtual Teuchos::RCP<StepperSubcyclingAppAction<Scalar> >
getAppAction()
const
107 Teuchos::RCP<
const Thyra::VectorBase<Scalar> > initial_guess);
110 Teuchos::RCP<Thyra::NonlinearSolverBase<Scalar> > solver = Teuchos::null);
112 virtual Teuchos::RCP<Thyra::NonlinearSolverBase<Scalar> >
getSolver()
const;
138 virtual void describe(Teuchos::FancyOStream & out,
139 const Teuchos::EVerbosityLevel verbLevel)
const;
171 virtual Teuchos::RCP<TimeStepControlStrategy<Scalar> >
173 virtual Teuchos::RCP<IntegratorObserver<Scalar> >
180 #ifndef TEMPUS_HIDE_DEPRECATED_CODE
190 #endif // Tempus_StepperSubcycling_decl_hpp
virtual int getSubcyclingMaxConsecFailures() const
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 Scalar getSubcyclingMaxTimeStep() const
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 int getSubcyclingMaxFailures() const
virtual void setSubcyclingTimeStepControlStrategy(Teuchos::RCP< TimeStepControlStrategy< Scalar > > tscs)
Application Action for StepperSubcycling.
Thyra Base interface for time steppers.
virtual Teuchos::RCP< IntegratorObserver< Scalar > > getSubcyclingIntegratorObserver() const
Teuchos::RCP< StepperSubcyclingObserver< Scalar > > stepperSCObserver_
virtual int getSubcyclingScreenOutputIndexInterval() const
virtual void setSubcyclingIntegratorObserver(Teuchos::RCP< IntegratorObserver< Scalar > > obs)
virtual bool isImplicit() const
virtual Scalar getOrderMax() const
IntegratorObserver class for time integrators.
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 void setSubcyclingScreenOutputIndexList(std::string s)
virtual std::string getSubcyclingStepType() const
virtual bool isExplicit() const
StepperObserver class for Stepper class.
virtual bool isMultiStepMethod() const
SolutionHistory is basically a container of SolutionStates. SolutionHistory maintains a collection of...
Teuchos::RCP< StepperSubcyclingAppAction< Scalar > > stepperSCAppAction_
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 Teuchos::RCP< const Stepper< Scalar > > getSubcyclingStepper() const
virtual Scalar getOrderMin() const
virtual OrderODE getOrderODE() const
virtual Scalar getOrder() const
virtual void setModel(const Teuchos::RCP< const Thyra::ModelEvaluator< Scalar > > &appModel)
virtual void setSubcyclingPrintDtChanges(bool printDtChanges)
virtual Teuchos::RCP< StepperSubcyclingAppAction< Scalar > > getAppAction() const
virtual std::string getSubcyclingScreenOutputIndexList() const
StepperSubcycling()
Default constructor.
virtual Scalar getSubcyclingMinTimeStep() const
virtual bool getSubcyclingPrintDtChanges() const
StepperSubcyclingObserver class for StepperSubcycling.
StepControlStrategy class for TimeStepControl.
virtual Teuchos::RCP< TimeStepControlStrategy< Scalar > > getSubcyclingTimeStepControlStrategy() const
virtual Scalar getSubcyclingInitTimeStep() const
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 void setAppAction(Teuchos::RCP< StepperSubcyclingAppAction< Scalar > > appAction=Teuchos::null)
virtual Teuchos::RCP< StepperObserver< Scalar > > getObserver() const
Get Observer.
virtual void setSubcyclingMaxFailures(int MaxFailures)