Skip to content

Commit 802248f

Browse files
committed
Rename masked_area in compute_global_grid_integral
Renamed the internal variable tmpForSumming to masked_area in compute_global_grid_integrals and corrected the description of its units from [m2] to [L2 ~> m2]. All answers are bitwise identical.
1 parent 68ece77 commit 802248f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/initialization/MOM_shared_initialization.F90

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1310,15 +1310,15 @@ subroutine compute_global_grid_integrals(G, US)
13101310
type(unit_scale_type), intent(in) :: US !< A dimensional unit scaling type
13111311

13121312
! Local variables
1313-
real, dimension(G%isc:G%iec, G%jsc:G%jec) :: tmpForSumming ! Masked and unscaled cell areas [m2]
1313+
real, dimension(G%isc:G%iec, G%jsc:G%jec) :: masked_area ! Masked cell areas [L2 ~> m2]
13141314
integer :: i, j
13151315

1316-
tmpForSumming(:,:) = 0.
1316+
masked_area(:,:) = 0.
13171317
G%areaT_global = 0.0 ; G%IareaT_global = 0.0
13181318
do j=G%jsc,G%jec ; do i=G%isc,G%iec
1319-
tmpForSumming(i,j) = G%areaT(i,j) * G%mask2dT(i,j)
1319+
masked_area(i,j) = G%areaT(i,j) * G%mask2dT(i,j)
13201320
enddo ; enddo
1321-
G%areaT_global = reproducing_sum(tmpForSumming, unscale=US%L_to_m**2)
1321+
G%areaT_global = reproducing_sum(masked_area, unscale=US%L_to_m**2)
13221322

13231323
if (G%areaT_global == 0.0) &
13241324
call MOM_error(FATAL, "compute_global_grid_integrals: zero ocean area (check topography?)")

0 commit comments

Comments
 (0)