@@ -4,8 +4,8 @@ module MOM_sum_output
4
4
! This file is part of MOM6. See LICENSE.md for the license.
5
5
6
6
use iso_fortran_env, only : int64
7
- use MOM_checksums, only : is_NaN
8
- use MOM_coms, only : sum_across_PEs, PE_here, root_PE, num_PEs, max_across_PEs, field_chksum
7
+ use MOM_checksums, only : is_NaN, field_checksum
8
+ use MOM_coms, only : sum_across_PEs, PE_here, root_PE, num_PEs, max_across_PEs
9
9
use MOM_coms, only : reproducing_sum, reproducing_sum_EFP, EFP_to_real, real_to_EFP
10
10
use MOM_coms, only : EFP_type, operator (+ ), operator (- ), assignment (= ), EFP_sum_across_PEs
11
11
use MOM_error_handler, only : MOM_error, FATAL, WARNING, NOTE, is_root_pe
@@ -1439,22 +1439,23 @@ subroutine get_depth_list_checksums(G, US, depth_chksum, area_chksum)
1439
1439
character (len= 16 ), intent (out ) :: depth_chksum ! < Depth checksum hexstring
1440
1440
character (len= 16 ), intent (out ) :: area_chksum ! < Area checksum hexstring
1441
1441
1442
+ ! Local variables
1443
+ real , allocatable :: field(:,:) ! A temporary array with no halos [Z ~> m] or [L2 ~> m2]
1442
1444
integer :: i, j
1443
- real , allocatable :: field(:,:) ! A temporary array for output converted to MKS units [m] or [m2]
1444
1445
1445
1446
allocate (field(G% isc:G% iec, G% jsc:G% jec))
1446
1447
1447
1448
! Depth checksum
1448
1449
do j= G% jsc,G% jec ; do i= G% isc,G% iec
1449
- field(i,j) = US % Z_to_m * ( G% bathyT(i,j) + G% Z_ref)
1450
+ field(i,j) = G% bathyT(i,j) + G% Z_ref
1450
1451
enddo ; enddo
1451
- write (depth_chksum, ' (Z16)' ) field_chksum (field(:,:))
1452
+ write (depth_chksum, ' (Z16)' ) field_checksum (field(:,:), unscale = US % Z_to_m )
1452
1453
1453
1454
! Area checksum
1454
1455
do j= G% jsc,G% jec ; do i= G% isc,G% iec
1455
- field(i,j) = G% mask2dT(i,j) * US % L_to_m ** 2 * G% areaT(i,j)
1456
+ field(i,j) = G% mask2dT(i,j) * G% areaT(i,j)
1456
1457
enddo ; enddo
1457
- write (area_chksum, ' (Z16)' ) field_chksum (field(:,:))
1458
+ write (area_chksum, ' (Z16)' ) field_checksum (field(:,:), unscale = US % L_to_m ** 2 )
1458
1459
1459
1460
deallocate (field)
1460
1461
end subroutine get_depth_list_checksums
0 commit comments