MFEM  v3.1
Finite element discretization library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Member Functions | List of all members
mfem::RK2Solver Class Reference

#include <ode.hpp>

Inheritance diagram for mfem::RK2Solver:
[legend]
Collaboration diagram for mfem::RK2Solver:
[legend]

Public Member Functions

 RK2Solver (const double _a=2./3.)
 
virtual void Init (TimeDependentOperator &_f)
 
virtual void Step (Vector &x, double &t, double &dt)
 
- Public Member Functions inherited from mfem::ODESolver
 ODESolver ()
 
virtual ~ODESolver ()
 

Additional Inherited Members

- Protected Attributes inherited from mfem::ODESolver
TimeDependentOperatorf
 

Detailed Description

A family of explicit second-order RK2 methods. Some choices for the parameter 'a' are: a = 1/2 - the midpoint method a = 1 - Heun's method a = 2/3 - default, has minimal truncation error.

Definition at line 56 of file ode.hpp.

Constructor & Destructor Documentation

mfem::RK2Solver::RK2Solver ( const double  _a = 2./3.)
inline

Definition at line 63 of file ode.hpp.

Member Function Documentation

void mfem::RK2Solver::Init ( TimeDependentOperator _f)
virtual

Reimplemented from mfem::ODESolver.

Definition at line 33 of file ode.cpp.

void mfem::RK2Solver::Step ( Vector x,
double &  t,
double &  dt 
)
virtual

Implements mfem::ODESolver.

Definition at line 41 of file ode.cpp.


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