0.6.2-dev0
FORCES
FORtran lib for Comp. Env. Sys.
Loading...
Searching...
No Matches
mo_utils::is_nan Interface Reference

.true. if IEEE NaN. More...

Public Member Functions

elemental pure logical function is_nan_sp (a)
 
elemental pure logical function is_nan_dp (a)
 

Detailed Description

.true. if IEEE NaN.

Checks for IEEE NaN, i.e. Not-a-Number.
Wraps to functions of the intrinsic module ieee_arithmetic.

Example

Returns .false. in all but 1st element

vec1 = (/ nan, 2., 3., inf, 5., 6. /)
isnan = is_nan(vec1)
Parameters
[in]real(sp/dp) :: aNumber to be evaluated.
Return values
logical :: is_nan\( a = NaN \), logically true or false.

Definition at line 344 of file mo_utils.F90.

Member Function/Subroutine Documentation

◆ is_nan_dp()

elemental pure logical function mo_utils::is_nan::is_nan_dp ( real(dp), intent(in)  a)
Parameters
[in]aNumber to be evaluated.
Returns
logical :: is_nan — \( a = NaN \), logically true or false.

Definition at line 1112 of file mo_utils.F90.

References mo_utils::is_nan_dp().

Here is the call graph for this function:

◆ is_nan_sp()

elemental pure logical function mo_utils::is_nan::is_nan_sp ( real(sp), intent(in)  a)
Parameters
[in]aNumber to be evaluated.
Returns
logical :: is_nan — \( a = NaN \), logically true or false.

Definition at line 1125 of file mo_utils.F90.

References mo_utils::is_nan_sp().

Here is the call graph for this function:

The documentation for this interface was generated from the following file: