Change the dpert
vector. Can be used after the class has been initialized
to change the perturbation step sizes (e.g., after an iteration).
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(numdiff_type), | intent(inout) | :: | me | |||
real(kind=wp), | intent(in), | dimension(:) | :: | dpert |
perturbation vector for |
subroutine set_dpert(me,dpert) class(numdiff_type),intent(inout) :: me real(wp),dimension(:),intent(in) :: dpert !! perturbation vector for `x` if (size(dpert)/=me%n) then call me%raise_exception(29,'set_dpert',& 'incorrect size of dpert array') else me%dpert = abs(dpert) ! update end if end subroutine set_dpert