solout_func Abstract Interface

abstract interface
private subroutine solout_func(me, nr, xold, x, y, irtrn, xout)

Arguments

Type IntentOptional Attributes Name
class(dop853_class), intent(inout) :: me
integer, intent(in) :: nr

grid point (0,1,...)

real(kind=wp), intent(in) :: xold

the preceding grid point

real(kind=wp), intent(in) :: x

current grid point

real(kind=wp), intent(in), dimension(:) :: y

state vector [size n]

integer, intent(inout) :: irtrn

serves to interrupt the integration. if irtrn is set <0, dop853 will return to the calling program. if the numerical solution is altered in solout, set irtrn = 2.

real(kind=wp), intent(out) :: xout

xout can be used for efficient intermediate output if one puts iout=3. when nr=1 define the first output point xout in solout. the subroutine solout will be called only when xout is in the interval [xold,x]; during this call a new value for xout can be defined, etc.

Description

solout furnishes the solution y at the nr-th grid-point x (thereby the initial value is the first grid-point).