Definition at line 77 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) |
| This function returns .true. if any element of x is a NaN, and .false. otherwise. More...
|
|
logical function | is_nan_2d (x) |
| This function returns .true. if any element of x is a NaN, and .false. otherwise. More...
|
|
logical function | is_nan_3d (x) |
| This function 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 1322 of file MOM_checksums.F90.
1322 real,
intent(in) :: x
1323 logical :: is_nan_0d
1327 if (((x < 0.0) .and. (x >= 0.0)) .or. &
1328 (.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, optional |
skip_mpp |
|
) |
| |
|
private |
This function returns .true. if any element of x is a NaN, and .false. otherwise.
- Parameters
-
[in] | x | The array to be checked for NaNs. |
| skip_mpp | If true, only check this array only on the local PE (default false). |
Definition at line 1340 of file MOM_checksums.F90.
1340 real,
dimension(:),
intent(in) :: x
1341 logical :: is_nan_1d
1342 logical,
optional :: skip_mpp
1348 do i = lbound(x,1), ubound(x,1)
1349 if (is_nan_0d(x(i))) n = n + 1
1352 if (
present(skip_mpp)) call_mpp = .not.skip_mpp
1354 if (call_mpp)
call sum_across_pes(n)
1356 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 |
This function 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 1364 of file MOM_checksums.F90.
1364 real,
dimension(:,:),
intent(in) :: x
1365 logical :: is_nan_2d
1370 do j = lbound(x,2), ubound(x,2) ;
do i = lbound(x,1), ubound(x,1)
1371 if (is_nan_0d(x(i,j))) n = n + 1
1373 call sum_across_pes(n)
1375 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 |
This function 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 1383 of file MOM_checksums.F90.
1383 real,
dimension(:,:,:),
intent(in) :: x
1384 logical :: is_nan_3d
1386 integer :: i, j, k, n
1389 do k = lbound(x,3), ubound(x,3)
1390 do j = lbound(x,2), ubound(x,2) ;
do i = lbound(x,1), ubound(x,1)
1391 if (is_nan_0d(x(i,j,k))) n = n + 1
1394 call sum_across_pes(n)
1396 if (n>0) is_nan_3d = .true.
The documentation for this interface was generated from the following file:
- /home/adcroft/GitHub/workspace/Gaea-stats-MOM6-examples/MOM6-examples/src/MOM6/src/framework/MOM_checksums.F90