Set the number of points used to estimate the sparsity pattern
when sparsity_mode=4. Must be in the range [1, max_num_sparsity_points].
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(numdiff_type), | intent(inout) | :: | me | |||
| integer, | intent(in) | :: | num_sparsity_points |
number of points |
subroutine set_num_sparsity_points(me,num_sparsity_points) implicit none class(numdiff_type),intent(inout) :: me integer,intent(in) :: num_sparsity_points !! number of points if (me%exception_raised) return ! check for exceptions if (num_sparsity_points<1 .or. num_sparsity_points>max_num_sparsity_points) then call me%raise_exception(32,'set_num_sparsity_points',& 'num_sparsity_points must be between 1 and '//& integer_to_string(max_num_sparsity_points)//'.') else me%num_sparsity_points = num_sparsity_points end if end subroutine set_num_sparsity_points