-
Notifications
You must be signed in to change notification settings - Fork 246
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
*Reproducing sums for SST_global and SSS_global
- Uses reproducing_sum() subroutine for global area, SST_global, and SSS_global - Use this commit instead of debafa1
- Loading branch information
Showing
2 changed files
with
8 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1322,7 +1322,7 @@ subroutine step_MOM(fluxes, state, Time_start, time_interval, CS) | |
if (CS%id_sst_global > 0) then | ||
tmpForSumming(:,:) = 0. | ||
do j=js,je ; do i=is, ie | ||
tmpForSumming(i,j) = ( state%SST(i,j) * G%areaT(i,j) * G%mask2dT(i,j) ) | ||
tmpForSumming(i,j) = ( state%SST(i,j) * (G%areaT(i,j) * G%mask2dT(i,j)) ) | ||
enddo ; enddo | ||
SST_global = reproducing_sum( tmpForSumming ) * G%IareaT_global | ||
call post_data(CS%id_sst_global, SST_global, CS%diag) | ||
|
@@ -1331,10 +1331,11 @@ subroutine step_MOM(fluxes, state, Time_start, time_interval, CS) | |
if (CS%id_sss_global > 0) then | ||
tmpForSumming(:,:) = 0. | ||
do j=js,je ; do i=is, ie | ||
tmpForSumming(i,j) = ( state%SSS(i,j) * G%areaT(i,j) * G%mask2dT(i,j) ) | ||
tmpForSumming(i,j) = ( state%SSS(i,j) * (G%areaT(i,j) * G%mask2dT(i,j)) ) | ||
enddo ; enddo | ||
SSS_global = reproducing_sum( tmpForSumming ) * G%IareaT_global | ||
call post_data(CS%id_sss_global, SSS_global, CS%diag) | ||
if (is_root_pe()) write (*,*) ' GLOBAL SSS = ', SSS_global | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
adcroft
Collaborator
|
||
endif | ||
|
||
if (CS%id_sss > 0) & | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I left this line in by accident ... if/when merged with dev/master, please delete.