interface to check for small values
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.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
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 |
Small value checks for a complex variable/array/matrix, with the real and imaginary parts checked separately. Values that are smaller than the specified tolerance tol are set to zero. If tol is not present, DP_LIMIT is used as tolerance.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
complex(kind=dp), | intent(inout) | :: | var | the complex variable/array/matrix to check, modified on output |
||
real(kind=dp), | intent(in), | optional | :: | tol | optional tolerance to check against |