Returns .true. if any element of x is a NaN, and .false. otherwise.
Definition at line 73 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...
|
|
◆ 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 1666 of file MOM_checksums.F90.
1666 real,
intent(in) :: x
1667 logical :: is_NaN_0d
1671 if (((x < 0.0) .and. (x >= 0.0)) .or. &
1672 (.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 1682 of file MOM_checksums.F90.
1682 real,
dimension(:),
intent(in) :: x
1683 logical,
optional,
intent(in) :: skip_mpp
1685 logical :: is_NaN_1d
1691 do i = lbound(x,1), ubound(x,1)
1692 if (is_nan_0d(x(i))) n = n + 1
1695 if (
present(skip_mpp)) call_mpp = .not.skip_mpp
1697 if (call_mpp)
call sum_across_pes(n)
1699 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 1705 of file MOM_checksums.F90.
1705 real,
dimension(:,:),
intent(in) :: x
1706 logical :: is_NaN_2d
1711 do j = lbound(x,2), ubound(x,2) ;
do i = lbound(x,1), ubound(x,1)
1712 if (is_nan_0d(x(i,j))) n = n + 1
1714 call sum_across_pes(n)
1716 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 1722 of file MOM_checksums.F90.
1722 real,
dimension(:,:,:),
intent(in) :: x
1723 logical :: is_NaN_3d
1725 integer :: i, j, k, n
1728 do k = lbound(x,3), ubound(x,3)
1729 do j = lbound(x,2), ubound(x,2) ;
do i = lbound(x,1), ubound(x,1)
1730 if (is_nan_0d(x(i,j,k))) n = n + 1
1733 call sum_across_pes(n)
1735 if (n>0) is_nan_3d = .true.
The documentation for this interface was generated from the following file:
- /glade/work/altuntas/cesm.sandboxes/cesm2_2_alpha_X_mom/components/mom/MOM6/src/framework/MOM_checksums.F90