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

.true. if not IEEE Inf. More...

Public Member Functions

elemental pure logical function is_finite_sp (a)
 
elemental pure logical function is_finite_dp (a)
 

Detailed Description

.true. if not IEEE Inf.

Checks for IEEE Inf, i.e. Infinity.
Wraps to functions of the intrinsic module ieee_arithmetic.

Example

Returns .false. in 1st and 4th element.

vec1 = (/ nan, 2., 3., inf, 5., 6. /)
isfinite = is_finite(vec1)
Parameters
[in]real(sp/dp) :: aNumber to be evaluated.
Return values
logical :: is_finite\( a \neq \infty \), logically true or false.
Authors
Matthias Cuntz
Date
Mar 2015

Definition at line 324 of file mo_utils.F90.

Member Function/Subroutine Documentation

◆ is_finite_dp()

elemental pure logical function mo_utils::is_finite::is_finite_dp ( real(dp), intent(in)  a)
Parameters
[in]aNumber to be evaluated.
Returns
logical :: is_finite — \( a \neq \infty \), logically true or false.

Definition at line 1084 of file mo_utils.F90.

References mo_utils::is_finite_dp().

Here is the call graph for this function:

◆ is_finite_sp()

elemental pure logical function mo_utils::is_finite::is_finite_sp ( real(sp), intent(in)  a)
Parameters
[in]aNumber to be evaluated.
Returns
logical :: is_finite — \( a \neq \infty \), logically true or false.

Definition at line 1098 of file mo_utils.F90.

References mo_utils::is_finite_sp().

Here is the call graph for this function:

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