Module that provides a 4th order low storage Runge-Kutta ODE integrator.
The implementation is found in submodule_rk4_implementation.f90.
Routine that reports how many temporary storage levels are needed.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(rk4), | intent(in) | :: | this | The routine is called on this object. |
The return value is the number of required temorary storage levels.
Routine that initializes the integrator.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(rk4), | intent(inout) | :: | this | The routine is called on this object. |
||
type(equation_pointer), | intent(in), | dimension(:) | :: | eqs | A 1d-array of pointers to equations that will be integrated. |
Routine that takes a time step.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(rk4), | intent(inout) | :: | this | The routine is called on this object. |
Routine that shuts downs the integrator.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(rk4), | intent(inout) | :: | this | The routine is called on this object. |
A 4th order low storage Runge-Kutta ODE integrator.
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
integer(kind=ip), | public | :: | nequations | The number of equations to integrate. |
|||
class(equation_pointer), | public, | dimension(:), allocatable | :: | eqs | A 1d array of equation pointers. Will be of length nequations. |
||
integer(kind=ip), | public | :: | ntmp | = | 1 | 1 level of temporary storage are required. |
procedure, public :: ntemp => rk4_ntemp | Routine to provide information about temporary storage levels is provided by rk4_ntemp. |
procedure, public :: init => rk4_init | Initialization routine is provided by rk4_init. |
procedure, public :: step => rk4_step | Stepping routine is provided by rk4_step. |
procedure, public :: shutdown => rk4_shutdown | Shut down routine is provided by rk4_shutdown. |