FORCES
FORtran lib for Comp. Env. Sys.
|
Special IEEE values. More...
Public Member Functions | |
real(sp) function | special_value_sp (x, ieee) |
real(dp) function | special_value_dp (x, ieee) |
Special IEEE values.
Returns special IEEE values such as Infinity or Not-a-Number.
Wraps to function ieee_value of the intrinsic module ieee_arithmetic.
Current special values are:
Example
Returns NaN
[in] | real(sp/dp) :: x | dummy for kind of output |
[in] | character(le=*) :: ieee | ieee signal nanme |
real(sp/dp) :: special_value | IEEE special value, IEEE_SIGNALING_NAN, IEEE_QUIET_NAN (==IEEE_SIGNALING_NAN for gfortran), IEEE_NEGATIVE_INF, IEEE_POSITIVE_INF, IEEE_NEGATIVE_DENORMAL (==-0.0 for gfortran), IEEE_POSITIVE_DENORMAL (==0.0 for gfortran), IEEE_NEGATIVE_NORMAL (==-1.0 for gfortran), IEEE_POSITIVE_NORMAL (==1.0 for gfortran), IEEE_NEGATIVE_ZERO, IEEE_POSITIVE_ZERO, |
Definition at line 496 of file mo_utils.F90.
real(dp) function mo_utils::special_value::special_value_dp | ( | real(dp), intent(in) | x, |
character(len = *), intent(in) | ieee | ||
) |
[in] | x | dummy for kind of output. |
[in] | ieee | ieee signal name. |
Definition at line 1339 of file mo_utils.F90.
References mo_utils::special_value_dp().
real(sp) function mo_utils::special_value::special_value_sp | ( | real(sp), intent(in) | x, |
character(len = *), intent(in) | ieee | ||
) |
[in] | x | dummy for kind of output. |
[in] | ieee | ieee signal name. |
Definition at line 1400 of file mo_utils.F90.
References mo_string_utils::compress(), mo_message::message(), and mo_utils::special_value_sp().