WRF icon indicating copy to clipboard operation
WRF copied to clipboard

Replace nonstandard isnan() call with value input checks instead

Open islas opened this issue 8 months ago • 1 comments

TYPE: bug fix

KEYWORDS: compilation, nonstandard

SOURCE: internal

DESCRIPTION OF CHANGES: Problem: PR #1944 introduced a nonstandard function call isnan() which breaks compilation for compilers which don't support this extension.

Solution: A potential alternative is to use the ieee_is_nan() call from ieee_arithmetic. As there is conditional compilation of this module which requires Fortran 2003 standard, an easier alternative is just to check the input values before calling acos()

islas avatar Jun 07 '24 19:06 islas