Returns .true. if any element of x is a NaN, and .false. otherwise.
Definition at line 74 of file MOM_checksums.F90.
|
| logical function | is_nan_0d (x) |
| | This function returns .true. if x is a NaN, and .false. otherwise. More...
|
| |
| logical function | is_nan_1d (x, skip_mpp) |
| | Returns .true. if any element of x is a NaN, and .false. otherwise. More...
|
| |
| logical function | is_nan_2d (x) |
| | Returns .true. if any element of x is a NaN, and .false. otherwise. More...
|
| |
| logical function | is_nan_3d (x) |
| | Returns .true. if any element of x is a NaN, and .false. otherwise. More...
|
| |
Returns .true. if any element of x is a NaN, and .false. otherwise.
Definition at line 74 of file MOM_checksums.F90.
◆ is_nan_0d()
| logical function mom_checksums::is_nan::is_nan_0d |
( |
real, intent(in) |
x | ) |
|
|
private |
This function returns .true. if x is a NaN, and .false. otherwise.
- Parameters
-
| [in] | x | The value to be checked for NaNs. |
Definition at line 2001 of file MOM_checksums.F90.
2002 real,
intent(in) :: x
2003 logical :: is_NaN_0d
2007 if (((x < 0.0) .and. (x >= 0.0)) .or. &
2008 (.not.(x < 0.0) .and. .not.(x >= 0.0)))
then
◆ is_nan_1d()
| logical function mom_checksums::is_nan::is_nan_1d |
( |
real, dimension(:), intent(in) |
x, |
|
|
logical, intent(in), optional |
skip_mpp |
|
) |
| |
|
private |
Returns .true. if any element of x is a NaN, and .false. otherwise.
- Parameters
-
| [in] | x | The array to be checked for NaNs. |
| [in] | skip_mpp | If true, only check this array only on the local PE (default false). |
Definition at line 2017 of file MOM_checksums.F90.
2018 real,
dimension(:),
intent(in) :: x
2019 logical,
optional,
intent(in) :: skip_mpp
2021 logical :: is_NaN_1d
2027 do i = lbound(x,1), ubound(x,1)
2028 if (is_nan_0d(x(i))) n = n + 1
2031 if (
present(skip_mpp)) call_mpp = .not.skip_mpp
2033 if (call_mpp)
call sum_across_pes(n)
2035 if (n>0) is_nan_1d = .true.
◆ is_nan_2d()
| logical function mom_checksums::is_nan::is_nan_2d |
( |
real, dimension(:,:), intent(in) |
x | ) |
|
|
private |
Returns .true. if any element of x is a NaN, and .false. otherwise.
- Parameters
-
| [in] | x | The array to be checked for NaNs. |
Definition at line 2040 of file MOM_checksums.F90.
2041 real,
dimension(:,:),
intent(in) :: x
2042 logical :: is_NaN_2d
2047 do j = lbound(x,2), ubound(x,2) ;
do i = lbound(x,1), ubound(x,1)
2048 if (is_nan_0d(x(i,j))) n = n + 1
2050 call sum_across_pes(n)
2052 if (n>0) is_nan_2d = .true.
◆ is_nan_3d()
| logical function mom_checksums::is_nan::is_nan_3d |
( |
real, dimension(:,:,:), intent(in) |
x | ) |
|
|
private |
Returns .true. if any element of x is a NaN, and .false. otherwise.
- Parameters
-
| [in] | x | The array to be checked for NaNs. |
Definition at line 2057 of file MOM_checksums.F90.
2058 real,
dimension(:,:,:),
intent(in) :: x
2059 logical :: is_NaN_3d
2061 integer :: i, j, k, n
2064 do k = lbound(x,3), ubound(x,3)
2065 do j = lbound(x,2), ubound(x,2) ;
do i = lbound(x,1), ubound(x,1)
2066 if (is_nan_0d(x(i,j,k))) n = n + 1
2069 call sum_across_pes(n)
2071 if (n>0) is_nan_3d = .true.
The documentation for this interface was generated from the following file: