ESMF_IEEECK Function

function ESMF_IEEECK(ISPEC, ZERO, ONE)

\brief \b ESMF_IEEECK \htmlonly Download ESMF_IEEECK + dependencies [TGZ] [ZIP] [TXT] \endhtmlonly \par Purpose:

\verbatim

ESMF_IEEECK is called from the ESMF_ILAENV to verify that Infinity and possibly NaN arithmetic is safe (i.e. will not trap). \endverbatim \param[in] ISPEC \verbatim ISPEC is INTEGER Specifies whether to test just for inifinity arithmetic or whether to test for infinity and NaN arithmetic. = 0: Verify infinity arithmetic only. = 1: Verify infinity and NaN arithmetic. \endverbatim

\param[in] ZERO \verbatim ZERO is REAL Must contain the value 0.0 This is passed to prevent the compiler from optimizing away this code. \endverbatim

\param[in] ONE \verbatim ONE is REAL Must contain the value 1.0 This is passed to prevent the compiler from optimizing away this code.

RETURN VALUE: INTEGER = 0: Arithmetic failed to produce the correct answers = 1: Arithmetic produced the correct answers \endverbatim \author Univ. of Tennessee \author Univ. of California Berkeley \author Univ. of Colorado Denver \author NAG Ltd. \date November 2011 \ingroup auxOTHERauxiliary

Arguments

Type IntentOptional Attributes Name
integer :: ISPEC
real :: ZERO
real :: ONE

Return Value integer