MFEM
v3.4
Finite element discretization library
|
#include <ode.hpp>
Public Member Functions | |
ExplicitRKSolver (int _s, const double *_a, const double *_b, const double *_c) | |
virtual void | Init (TimeDependentOperator &_f) |
Associate a TimeDependentOperator with the ODE solver. More... | |
virtual void | Step (Vector &x, double &t, double &dt) |
Perform a time step from time t [in] to time t [out] based on the requested step size dt [in]. More... | |
virtual | ~ExplicitRKSolver () |
Public Member Functions inherited from mfem::ODESolver | |
ODESolver () | |
virtual void | Run (Vector &x, double &t, double &dt, double tf) |
Perform time integration from time t [in] to time tf [in]. More... | |
virtual | ~ODESolver () |
Additional Inherited Members | |
Protected Attributes inherited from mfem::ODESolver | |
TimeDependentOperator * | f |
Pointer to the associated TimeDependentOperator. More... | |
An explicit Runge-Kutta method corresponding to a general Butcher tableau +-----—+-------------------—+ | c[0] | a[0] | | c[1] | a[1] a[2] | | ... | ... | | c[s-2] | ... a[s(s-1)/2-1] | +-----—+-------------------—+ | | b[0] b[1] ... b[s-1] | +-----—+-------------------—+
mfem::ExplicitRKSolver::ExplicitRKSolver | ( | int | _s, |
const double * | _a, | ||
const double * | _b, | ||
const double * | _c | ||
) |
|
virtual |
Associate a TimeDependentOperator with the ODE solver.
This method has to be called:
Reimplemented from mfem::ODESolver.
|
virtual |
Perform a time step from time t [in] to time t [out] based on the requested step size dt [in].
[in,out] | x | Approximate solution. |
[in,out] | t | Time associated with the approximate solution x. |
[in,out] | dt | Time step size. |
The following rules describe the common behavior of the method:
Implements mfem::ODESolver.