small_values_real Subroutine

private elemental subroutine small_values_real(var, tol)

Small value checks for a real variable/array/matrix. Values that are smaller than the specified tolerance tol are set to zero. If tol is not present, DP_LIMIT is used as tolerance.

Arguments

TypeIntentOptionalAttributesName
real(kind=dp), intent(inout) :: var

the real variable/array/matrix to check, modified on output

real(kind=dp), intent(in), optional :: tol

optional tolerance to check against


Contents

None