Compute dx
, the perturbation vector for x
used
when computing the sparsity pattern.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(numdiff_type), | intent(inout) | :: | me | |||
real(kind=wp), | intent(in), | dimension(me%n) | :: | x |
vector of variables (size |
|
real(kind=wp), | intent(out), | dimension(me%n) | :: | dx |
absolute perturbation (>0) for each variable |
subroutine compute_sparsity_perturbation_vector(me,x,dx) implicit none class(numdiff_type),intent(inout) :: me real(wp),dimension(me%n),intent(in) :: x !! vector of variables (size `n`) real(wp),dimension(me%n),intent(out) :: dx !! absolute perturbation (>0) !! for each variable if (me%exception_raised) return ! check for exceptions call me%compute_perturb_vector(x,me%dpert_for_sparsity,me%sparsity_perturb_mode,dx) end subroutine compute_sparsity_perturbation_vector