Compute the function and add it to the FSAL cache.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(rk_variable_step_fsal_class), | intent(inout) | :: | me | |||
real(kind=wp), | intent(in) | :: | t | |||
real(kind=wp), | intent(in), | dimension(:) | :: | x | ||
real(kind=wp), | intent(out), | dimension(:) | :: | f |
subroutine set_fsal_cache(me,t,x,f) class(rk_variable_step_fsal_class),intent(inout) :: me real(wp),intent(in) :: t real(wp),dimension(:),intent(in) :: x real(wp),dimension(:),intent(out) :: f call me%f(t,x,f) me%t_saved = t me%x_saved = x me%f_saved = f end subroutine set_fsal_cache