Tempus  Version of the Day
Time Integration
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Tempus_Integrator.hpp
Go to the documentation of this file.
1 // @HEADER
2 // ****************************************************************************
3 // Tempus: Copyright (2017) Sandia Corporation
4 //
5 // Distributed under BSD 3-clause license (See accompanying file Copyright.txt)
6 // ****************************************************************************
7 // @HEADER
8 
9 #ifndef Tempus_Integrator_hpp
10 #define Tempus_Integrator_hpp
11 
12 #include "Tempus_config.hpp"
13 #include "Tempus_Types.hpp"
14 #include "Teuchos_VerboseObject.hpp"
15 #include "Teuchos_Describable.hpp"
16 
17 #include <string>
18 
19 namespace Teuchos {
20 class Time;
21 }
22 
23 namespace Tempus {
24 template <typename Scalar>
25 class Stepper;
26 template <typename Scalar>
28 template <typename Scalar>
30 } // namespace Tempus
31 
32 namespace Tempus {
33 
64 template <class Scalar>
66  : virtual public Teuchos::Describable,
67  virtual public Teuchos::VerboseObject<Tempus::Integrator<Scalar> > {
68  public:
70 
71  virtual bool advanceTime(const Scalar time_final) = 0;
74  virtual Scalar getTime() const = 0;
76  virtual int getIndex() const = 0;
78  virtual Tempus::Status getStatus() const = 0;
80  virtual void setStatus(const Tempus::Status st) = 0;
82  virtual Teuchos::RCP<Stepper<Scalar> > getStepper() const = 0;
85  const = 0;
91  const = 0;
96  virtual Teuchos::RCP<Teuchos::Time> getStepperTimer() const = 0;
98 };
99 
100 } // namespace Tempus
101 #endif // Tempus_Integrator_hpp
virtual Teuchos::RCP< Teuchos::Time > getStepperTimer() const =0
virtual Teuchos::RCP< Teuchos::Time > getIntegratorTimer() const =0
Returns the IntegratorTimer_ for this Integrator.
virtual Teuchos::RCP< const TimeStepControl< Scalar > > getTimeStepControl() const =0
Returns the TimeStepControl for this Integrator.
virtual Teuchos::RCP< TimeStepControl< Scalar > > getNonConstTimeStepControl()=0
virtual Tempus::Status getStatus() const =0
Get the Status.
virtual Teuchos::RCP< SolutionHistory< Scalar > > getNonConstSolutionHistory()=0
Returns the SolutionHistory for this Integrator.
Thyra Base interface for time steppers.
Status
Status for the Integrator, the Stepper and the SolutionState.
virtual Scalar getTime() const =0
Get current time.
virtual void setStatus(const Tempus::Status st)=0
Set the Status.
TimeStepControl manages the time step size. There several mechanisms that effect the time step size a...
SolutionHistory is basically a container of SolutionStates. SolutionHistory maintains a collection of...
virtual bool advanceTime(const Scalar time_final)=0
Advance the solution to time, and return true if successful.
Thyra Base interface for time integrators. Time integrators are designed to advance the solution from...
virtual Teuchos::RCP< Stepper< Scalar > > getStepper() const =0
Get the stepper.
virtual int getIndex() const =0
Get current index.
virtual Teuchos::RCP< const SolutionHistory< Scalar > > getSolutionHistory() const =0
Returns the SolutionHistory for this Integrator.