MFEM v4.8.0
Finite element discretization library
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
mfem::ODEStateData Class Referenceabstract

An interface for storing state of previous timesteps. More...

#include <ode.hpp>

Inheritance diagram for mfem::ODEStateData:
[legend]

Public Member Functions

virtual int MaxSize () const =0
 Get the maximum number of stored stages.
 
virtual int Size () const =0
 Get the current number of stored stages.
 
virtual const VectorGet (int i) const =0
 Get the ith state vector.
 
virtual VectorGet (int i)=0
 Get the ith state vector - non-const version.
 
virtual void Get (int i, Vector &vec) const =0
 Get the ith state vector - with a copy.
 
virtual void Set (int i, Vector &state)=0
 Set the ith state vector.
 
virtual void Append (Vector &state)=0
 Add state vector and increment state size.
 
virtual ~ODEStateData ()=default
 Virtual destructor.
 

Detailed Description

An interface for storing state of previous timesteps.

Definition at line 25 of file ode.hpp.

Constructor & Destructor Documentation

◆ ~ODEStateData()

virtual mfem::ODEStateData::~ODEStateData ( )
virtualdefault

Virtual destructor.

Member Function Documentation

◆ Append()

virtual void mfem::ODEStateData::Append ( Vector & state)
pure virtual

Add state vector and increment state size.

Implemented in mfem::ODEStateDataVector.

◆ Get() [1/3]

virtual const Vector & mfem::ODEStateData::Get ( int i) const
pure virtual

Get the ith state vector.

Implemented in mfem::ODEStateDataVector.

◆ Get() [2/3]

virtual Vector & mfem::ODEStateData::Get ( int i)
pure virtual

Get the ith state vector - non-const version.

Implemented in mfem::ODEStateDataVector.

◆ Get() [3/3]

virtual void mfem::ODEStateData::Get ( int i,
Vector & vec ) const
pure virtual

Get the ith state vector - with a copy.

Implemented in mfem::ODEStateDataVector.

◆ MaxSize()

virtual int mfem::ODEStateData::MaxSize ( ) const
pure virtual

Get the maximum number of stored stages.

Implemented in mfem::ODEStateDataVector.

◆ Set()

virtual void mfem::ODEStateData::Set ( int i,
Vector & state )
pure virtual

Set the ith state vector.

Implemented in mfem::ODEStateDataVector.

◆ Size()

virtual int mfem::ODEStateData::Size ( ) const
pure virtual

Get the current number of stored stages.

Implemented in mfem::ODEStateDataVector.


The documentation for this class was generated from the following file: