Tempus
Version of the Day
Time Integration
|
Basic time integrator. More...
#include <Tempus_IntegratorBasicOld_decl.hpp>
Public Member Functions | |
IntegratorBasicOld (Teuchos::RCP< Teuchos::ParameterList > pList, const Teuchos::RCP< Thyra::ModelEvaluator< Scalar > > &model) | |
Constructor with ParameterList and model, and will be fully initialized. More... | |
IntegratorBasicOld (const Teuchos::RCP< Thyra::ModelEvaluator< Scalar > > &model, std::string stepperType) | |
Constructor with model and "Stepper Type" and is fully initialized with default settings. More... | |
IntegratorBasicOld () | |
Constructor that requires a subsequent setParameterList, setStepper, and initialize calls. More... | |
IntegratorBasicOld (Teuchos::RCP< Teuchos::ParameterList > pList, std::vector< Teuchos::RCP< const Thyra::ModelEvaluator< Scalar > > > models) | |
Constructor with ParameterList and models, and will be fully initialized. More... | |
virtual | ~IntegratorBasicOld () |
Destructor. More... | |
void | parseScreenOutput () |
Parse when screen output should be executed. More... | |
Public Member Functions inherited from Tempus::Integrator< Scalar > | |
Public Member Functions inherited from Teuchos::Describable | |
void | describe (std::ostream &out, const EVerbosityLevel verbLevel=verbLevel_default) const |
virtual | ~Describable () |
LabeledObject () | |
virtual | ~LabeledObject () |
virtual void | setObjectLabel (const std::string &objectLabel) |
virtual std::string | getObjectLabel () const |
DescribableStreamManipulatorState | describe (const Describable &describable, const EVerbosityLevel verbLevel=Describable::verbLevel_default) |
std::ostream & | operator<< (std::ostream &os, const DescribableStreamManipulatorState &d) |
Public Member Functions inherited from Teuchos::VerboseObject< Tempus::Integrator< Scalar > > | |
VerboseObject (const EVerbosityLevel verbLevel=VERB_DEFAULT, const RCP< FancyOStream > &oStream=Teuchos::null) | |
virtual const VerboseObject & | setVerbLevel (const EVerbosityLevel verbLevel) const |
virtual const VerboseObject & | setOverridingVerbLevel (const EVerbosityLevel verbLevel) const |
virtual EVerbosityLevel | getVerbLevel () const |
TEUCHOSPARAMETERLIST_LIB_DLL_EXPORT RCP< const ParameterList > | getValidVerboseObjectSublist () |
TEUCHOSPARAMETERLIST_LIB_DLL_EXPORT void | setupVerboseObjectSublist (ParameterList *paramList) |
TEUCHOSPARAMETERLIST_LIB_DLL_EXPORT void | readVerboseObjectSublist (ParameterList *paramList, RCP< FancyOStream > *oStream, EVerbosityLevel *verbLevel) |
void | readVerboseObjectSublist (ParameterList *paramList, VerboseObject< ObjectType > *verboseObject) |
Public Member Functions inherited from Teuchos::VerboseObjectBase | |
virtual | ~VerboseObjectBase () |
VerboseObjectBase (const RCP< FancyOStream > &oStream=Teuchos::null) | |
virtual const VerboseObjectBase & | setOStream (const RCP< FancyOStream > &oStream) const |
virtual const VerboseObjectBase & | setOverridingOStream (const RCP< FancyOStream > &oStream) const |
virtual VerboseObjectBase & | setLinePrefix (const std::string &linePrefix) |
virtual RCP< FancyOStream > | getOStream () const |
virtual RCP< FancyOStream > | getOverridingOStream () const |
virtual std::string | getLinePrefix () const |
virtual OSTab | getOSTab (const int tabs=1, const std::string &linePrefix="") const |
Public Member Functions inherited from Teuchos::ParameterListAcceptor | |
virtual RCP< const ParameterList > | getParameterList () const |
Protected Attributes | |
Teuchos::RCP < Teuchos::ParameterList > | tempusPL_ |
Teuchos::RCP < Teuchos::ParameterList > | integratorPL_ |
Teuchos::RCP< SolutionHistory < Scalar > > | solutionHistory_ |
Teuchos::RCP< TimeStepControl < Scalar > > | timeStepControl_ |
Teuchos::RCP < IntegratorObserverComposite < Scalar > > | integratorObserver_ |
Teuchos::RCP< Stepper< Scalar > > | stepper_ |
Teuchos::RCP< Teuchos::Time > | integratorTimer_ |
Teuchos::RCP< Teuchos::Time > | stepperTimer_ |
Scalar | runtime_ |
std::vector< int > | outputScreenIndices_ |
Vector of screen output indices. More... | |
Status | integratorStatus_ |
bool | isInitialized_ |
Basic integrator methods | |
virtual bool | advanceTime () |
Advance the solution to timeMax, and return true if successful. More... | |
virtual bool | advanceTime (const Scalar timeFinal) override |
Advance the solution to timeFinal, and return true if successful. More... | |
virtual void | startIntegrator () |
Perform tasks before start of integrator. More... | |
virtual void | startTimeStep () |
Start time step. More... | |
virtual void | checkTimeStep () |
Check if time step has passed or failed. More... | |
virtual void | endIntegrator () |
Perform tasks after end of integrator. More... | |
virtual Teuchos::RCP < Teuchos::ParameterList > | getTempusParameterList () override |
Return a copy of the Tempus ParameterList. More... | |
virtual void | setTempusParameterList (Teuchos::RCP< Teuchos::ParameterList > pl) override |
Accessor methods | |
virtual Scalar | getTime () const override |
Get current time. More... | |
virtual int | getIndex () const override |
Get current index. More... | |
virtual Status | getStatus () const override |
Get Status. More... | |
virtual Teuchos::RCP< Stepper < Scalar > > | getStepper () const override |
Get the Stepper. More... | |
virtual void | setStepper (Teuchos::RCP< const Thyra::ModelEvaluator< Scalar > > model) |
Set the Stepper. More... | |
virtual void | setStepper (std::vector< Teuchos::RCP< const Thyra::ModelEvaluator< Scalar > > > models) |
Set the Stepper. More... | |
virtual void | setStepperWStepper (Teuchos::RCP< Stepper< Scalar > > stepper) |
Set the Stepper. More... | |
virtual void | initializeSolutionHistory (Teuchos::RCP< SolutionState< Scalar > > state=Teuchos::null) |
Set the initial state which has the initial conditions. More... | |
virtual void | initializeSolutionHistory (Scalar t0, Teuchos::RCP< const Thyra::VectorBase< Scalar > > x0, Teuchos::RCP< const Thyra::VectorBase< Scalar > > xdot0=Teuchos::null, Teuchos::RCP< const Thyra::VectorBase< Scalar > > xdotdot0=Teuchos::null) |
Set the initial state from Thyra::VectorBase(s) More... | |
virtual Teuchos::RCP< const SolutionHistory< Scalar > > | getSolutionHistory () const override |
Get the SolutionHistory. More... | |
virtual void | setSolutionHistory (Teuchos::RCP< SolutionHistory< Scalar > > sh=Teuchos::null) |
Set the SolutionHistory. More... | |
virtual Teuchos::RCP< const TimeStepControl< Scalar > > | getTimeStepControl () const override |
Get the TimeStepControl. More... | |
virtual Teuchos::RCP < TimeStepControl< Scalar > > | getNonConstTimeStepControl () override |
virtual void | setTimeStepControl (Teuchos::RCP< TimeStepControl< Scalar > > tsc=Teuchos::null) |
Set the TimeStepControl. More... | |
virtual Teuchos::RCP < IntegratorObserverComposite < Scalar > > | getObserver () |
Get the Observer. More... | |
virtual void | setObserver (Teuchos::RCP< IntegratorObserver< Scalar > > obs=Teuchos::null) |
Set the Observer. More... | |
virtual void | initialize () |
Initializes the Integrator after set* function calls. More... | |
virtual Teuchos::RCP < Teuchos::Time > | getIntegratorTimer () const override |
Returns the IntegratorTimer_ for this Integrator. More... | |
virtual Teuchos::RCP < Teuchos::Time > | getStepperTimer () const override |
virtual Teuchos::RCP < Thyra::VectorBase< Scalar > > | getX () const |
Get current the solution, x. More... | |
virtual Teuchos::RCP < Thyra::VectorBase< Scalar > > | getXDot () const |
Get current the time derivative of the solution, xdot. More... | |
virtual Teuchos::RCP < Thyra::VectorBase< Scalar > > | getXDotDot () const |
Get current the second time derivative of the solution, xdotdot. More... | |
virtual Teuchos::RCP < SolutionState< Scalar > > | getCurrentState () |
Get current state. More... | |
Teuchos::RCP < Teuchos::ParameterList > | getIntegratorParameterList () |
virtual void | setScreenOutputIndexInterval (int i) |
virtual int | getScreenOutputIndexInterval () const |
virtual void | setScreenOutputIndexList (std::string s) |
virtual std::string | getScreenOutputIndexList () const |
Overridden from Teuchos::ParameterListAcceptor | |
void | setParameterList (const Teuchos::RCP< Teuchos::ParameterList > &pl) override |
Teuchos::RCP < Teuchos::ParameterList > | getNonconstParameterList () override |
Teuchos::RCP < Teuchos::ParameterList > | unsetParameterList () override |
Teuchos::RCP< const Teuchos::ParameterList > | getValidParameters () const override |
Create valid IntegratorBasicOld ParameterList. More... | |
Overridden from Teuchos::Describable | |
std::string | description () const override |
void | describe (Teuchos::FancyOStream &out, const Teuchos::EVerbosityLevel verbLevel) const override |
Additional Inherited Members | |
Static Public Member Functions inherited from Teuchos::VerboseObject< Tempus::Integrator< Scalar > > | |
static void | setDefaultVerbLevel (const EVerbosityLevel defaultVerbLevel) |
static EVerbosityLevel | getDefaultVerbLevel () |
Static Public Member Functions inherited from Teuchos::VerboseObjectBase | |
static void | setDefaultOStream (const RCP< FancyOStream > &defaultOStream) |
static RCP< FancyOStream > | getDefaultOStream () |
Static Public Attributes inherited from Teuchos::Describable | |
static const EVerbosityLevel | verbLevel_default |
Protected Member Functions inherited from Teuchos::VerboseObject< Tempus::Integrator< Scalar > > | |
void | initializeVerboseObject (const EVerbosityLevel verbLevel=VERB_DEFAULT, const RCP< FancyOStream > &oStream=Teuchos::null) |
Protected Member Functions inherited from Teuchos::VerboseObjectBase | |
void | initializeVerboseObjectBase (const RCP< FancyOStream > &oStream=Teuchos::null) |
virtual void | informUpdatedVerbosityState () const |
Basic time integrator.
Definition at line 29 of file Tempus_IntegratorBasicOld_decl.hpp.
Tempus::IntegratorBasicOld< Scalar >::IntegratorBasicOld | ( | Teuchos::RCP< Teuchos::ParameterList > | pList, |
const Teuchos::RCP< Thyra::ModelEvaluator< Scalar > > & | model | ||
) |
Constructor with ParameterList and model, and will be fully initialized.
Definition at line 20 of file Tempus_IntegratorBasicOld_impl.hpp.
Tempus::IntegratorBasicOld< Scalar >::IntegratorBasicOld | ( | const Teuchos::RCP< Thyra::ModelEvaluator< Scalar > > & | model, |
std::string | stepperType | ||
) |
Constructor with model and "Stepper Type" and is fully initialized with default settings.
Definition at line 33 of file Tempus_IntegratorBasicOld_impl.hpp.
Tempus::IntegratorBasicOld< Scalar >::IntegratorBasicOld | ( | ) |
Constructor that requires a subsequent setParameterList, setStepper, and initialize calls.
Definition at line 50 of file Tempus_IntegratorBasicOld_impl.hpp.
Tempus::IntegratorBasicOld< Scalar >::IntegratorBasicOld | ( | Teuchos::RCP< Teuchos::ParameterList > | pList, |
std::vector< Teuchos::RCP< const Thyra::ModelEvaluator< Scalar > > > | models | ||
) |
Constructor with ParameterList and models, and will be fully initialized.
Definition at line 59 of file Tempus_IntegratorBasicOld_impl.hpp.
|
inlinevirtual |
Destructor.
Definition at line 54 of file Tempus_IntegratorBasicOld_decl.hpp.
|
virtual |
Advance the solution to timeMax, and return true if successful.
Definition at line 383 of file Tempus_IntegratorBasicOld_impl.hpp.
|
overridevirtual |
Advance the solution to timeFinal, and return true if successful.
Implements Tempus::Integrator< Scalar >.
Definition at line 345 of file Tempus_IntegratorBasicOld_impl.hpp.
|
virtual |
Perform tasks before start of integrator.
Definition at line 355 of file Tempus_IntegratorBasicOld_impl.hpp.
|
virtual |
Start time step.
Definition at line 430 of file Tempus_IntegratorBasicOld_impl.hpp.
|
virtual |
Check if time step has passed or failed.
Definition at line 456 of file Tempus_IntegratorBasicOld_impl.hpp.
|
virtual |
Perform tasks after end of integrator.
Definition at line 525 of file Tempus_IntegratorBasicOld_impl.hpp.
|
inlineoverridevirtual |
Return a copy of the Tempus ParameterList.
Implements Tempus::Integrator< Scalar >.
Definition at line 71 of file Tempus_IntegratorBasicOld_decl.hpp.
|
inlineoverridevirtual |
Implements Tempus::Integrator< Scalar >.
Definition at line 73 of file Tempus_IntegratorBasicOld_decl.hpp.
|
inlineoverridevirtual |
Get current time.
Implements Tempus::Integrator< Scalar >.
Definition at line 85 of file Tempus_IntegratorBasicOld_decl.hpp.
|
inlineoverridevirtual |
Get current index.
Implements Tempus::Integrator< Scalar >.
Definition at line 88 of file Tempus_IntegratorBasicOld_decl.hpp.
|
inlineoverridevirtual |
Get Status.
Implements Tempus::Integrator< Scalar >.
Definition at line 91 of file Tempus_IntegratorBasicOld_decl.hpp.
|
inlineoverridevirtual |
Get the Stepper.
Implements Tempus::Integrator< Scalar >.
Definition at line 94 of file Tempus_IntegratorBasicOld_decl.hpp.
|
virtual |
Set the Stepper.
Definition at line 72 of file Tempus_IntegratorBasicOld_impl.hpp.
|
virtual |
Set the Stepper.
Definition at line 92 of file Tempus_IntegratorBasicOld_impl.hpp.
|
virtual |
Set the Stepper.
Definition at line 108 of file Tempus_IntegratorBasicOld_impl.hpp.
|
virtual |
Set the initial state which has the initial conditions.
This resets the SolutionHistory and sets the first SolutionState as the IC.
Definition at line 117 of file Tempus_IntegratorBasicOld_impl.hpp.
|
virtual |
Set the initial state from Thyra::VectorBase(s)
Definition at line 155 of file Tempus_IntegratorBasicOld_impl.hpp.
|
inlineoverridevirtual |
Get the SolutionHistory.
Implements Tempus::Integrator< Scalar >.
Definition at line 112 of file Tempus_IntegratorBasicOld_decl.hpp.
|
virtual |
Set the SolutionHistory.
Definition at line 200 of file Tempus_IntegratorBasicOld_impl.hpp.
|
inlineoverridevirtual |
Get the TimeStepControl.
Implements Tempus::Integrator< Scalar >.
Definition at line 118 of file Tempus_IntegratorBasicOld_decl.hpp.
|
inlineoverridevirtual |
Implements Tempus::Integrator< Scalar >.
Definition at line 120 of file Tempus_IntegratorBasicOld_decl.hpp.
|
virtual |
Set the TimeStepControl.
Definition at line 223 of file Tempus_IntegratorBasicOld_impl.hpp.
|
inlinevirtual |
Get the Observer.
Definition at line 126 of file Tempus_IntegratorBasicOld_decl.hpp.
|
virtual |
Set the Observer.
Definition at line 258 of file Tempus_IntegratorBasicOld_impl.hpp.
|
virtual |
Initializes the Integrator after set* function calls.
Definition at line 284 of file Tempus_IntegratorBasicOld_impl.hpp.
|
inlineoverridevirtual |
Returns the IntegratorTimer_ for this Integrator.
Implements Tempus::Integrator< Scalar >.
Definition at line 135 of file Tempus_IntegratorBasicOld_decl.hpp.
|
inlineoverridevirtual |
Implements Tempus::Integrator< Scalar >.
Definition at line 137 of file Tempus_IntegratorBasicOld_decl.hpp.
|
inlinevirtual |
Get current the solution, x.
Definition at line 141 of file Tempus_IntegratorBasicOld_decl.hpp.
|
inlinevirtual |
Get current the time derivative of the solution, xdot.
Definition at line 144 of file Tempus_IntegratorBasicOld_decl.hpp.
|
inlinevirtual |
Get current the second time derivative of the solution, xdotdot.
Definition at line 147 of file Tempus_IntegratorBasicOld_decl.hpp.
|
inlinevirtual |
Get current state.
Definition at line 151 of file Tempus_IntegratorBasicOld_decl.hpp.
|
inline |
Definition at line 154 of file Tempus_IntegratorBasicOld_decl.hpp.
|
inlinevirtual |
Definition at line 160 of file Tempus_IntegratorBasicOld_decl.hpp.
|
inlinevirtual |
Definition at line 163 of file Tempus_IntegratorBasicOld_decl.hpp.
|
inlinevirtual |
Definition at line 166 of file Tempus_IntegratorBasicOld_decl.hpp.
|
inlinevirtual |
Definition at line 169 of file Tempus_IntegratorBasicOld_decl.hpp.
void Tempus::IntegratorBasicOld< Scalar >::parseScreenOutput | ( | ) |
Parse when screen output should be executed.
Definition at line 542 of file Tempus_IntegratorBasicOld_impl.hpp.
|
overridevirtual |
Implements Teuchos::ParameterListAcceptor.
Definition at line 573 of file Tempus_IntegratorBasicOld_impl.hpp.
|
overridevirtual |
Implements Teuchos::ParameterListAcceptor.
Definition at line 645 of file Tempus_IntegratorBasicOld_impl.hpp.
|
overridevirtual |
Implements Teuchos::ParameterListAcceptor.
Definition at line 653 of file Tempus_IntegratorBasicOld_impl.hpp.
|
overridevirtual |
Create valid IntegratorBasicOld ParameterList.
Reimplemented from Teuchos::ParameterListAcceptor.
Definition at line 613 of file Tempus_IntegratorBasicOld_impl.hpp.
|
overridevirtual |
Reimplemented from Teuchos::Describable.
Definition at line 315 of file Tempus_IntegratorBasicOld_impl.hpp.
|
overridevirtual |
Reimplemented from Teuchos::Describable.
Definition at line 323 of file Tempus_IntegratorBasicOld_impl.hpp.
|
protected |
Definition at line 195 of file Tempus_IntegratorBasicOld_decl.hpp.
|
protected |
Definition at line 196 of file Tempus_IntegratorBasicOld_decl.hpp.
|
protected |
Definition at line 197 of file Tempus_IntegratorBasicOld_decl.hpp.
|
protected |
Definition at line 198 of file Tempus_IntegratorBasicOld_decl.hpp.
|
protected |
Definition at line 199 of file Tempus_IntegratorBasicOld_decl.hpp.
|
protected |
Definition at line 200 of file Tempus_IntegratorBasicOld_decl.hpp.
|
protected |
Definition at line 202 of file Tempus_IntegratorBasicOld_decl.hpp.
|
protected |
Definition at line 203 of file Tempus_IntegratorBasicOld_decl.hpp.
|
protected |
Definition at line 204 of file Tempus_IntegratorBasicOld_decl.hpp.
|
protected |
Vector of screen output indices.
Definition at line 206 of file Tempus_IntegratorBasicOld_decl.hpp.
|
protected |
The integratorStatus is primarily in the WORKING Status, and PASSED/FAILED are noted at the end of the run. A FAILED value is used to jump out of the time-integration loop.
Definition at line 212 of file Tempus_IntegratorBasicOld_decl.hpp.
|
protected |
Definition at line 213 of file Tempus_IntegratorBasicOld_decl.hpp.