rkf45_module Module


Uses


Contents


Subroutines

public subroutine rkf45(f, neqn, y, t, tout, relerr, abserr, iflag, work, iwork)

rkf45 is primarily designed to solve non-stiff and mildly stiff differential equations when derivative evaluations are inexpensive. rkf45 should generally not be used when the user is demanding high accuracy. 在计算量不大的计算中,rkf45主要用于求解非刚性和轻微刚性的常微分方程。

Arguments

Type IntentOptional Attributes Name
procedure(fcn) :: f
integer, intent(in) :: neqn
real(kind=rk), intent(inout) :: y(neqn)
real(kind=rk), intent(inout) :: t
real(kind=rk), intent(in) :: tout
real(kind=rk), intent(inout) :: relerr
real(kind=rk), intent(in) :: abserr
integer, intent(inout) :: iflag
real(kind=rk), intent(inout) :: work(*)
integer, intent(inout) :: iwork(5)