Changeset 2457 for branches/nemo_v3_3_beta/NEMOGCM/NEMO/TOP_SRC/trcini.F90
- Timestamp:
- 2010-12-07T10:51:47+01:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/nemo_v3_3_beta/NEMOGCM/NEMO/TOP_SRC/trcini.F90
r2431 r2457 33 33 USE prtctl_trc ! Print control passive tracers (prt_ctl_trc_init routine) 34 34 USE lib_mpp ! distributed memory computing library 35 USE lib_fortran ! 35 36 36 37 IMPLICIT NONE … … 67 68 ! ! masked grid volume 68 69 DO jk = 1, jpk 69 cvol(:,:,jk) = e1t(:,:) * e2t(:,:) * fse3t(:,:,jk) * tmask(:,:,jk) * tmask_i(:,:)70 cvol(:,:,jk) = e1t(:,:) * e2t(:,:) * fse3t(:,:,jk) * tmask(:,:,jk) 70 71 END DO 71 72 72 73 ! total volume of the ocean 73 74 #if ! defined key_degrad 74 areatot = SUM( cvol(:,:,:) )75 areatot = glob_sum( cvol(:,:,:) ) 75 76 #else 76 areatot = SUM( cvol(:,:,:) * facvol(:,:,:) ) ! degrad option: reduction by facvol77 areatot = glob_sum( cvol(:,:,:) * facvol(:,:,:) ) ! degrad option: reduction by facvol 77 78 #endif 78 IF( lk_mpp ) CALL mpp_sum( areatot ) ! sum over the global domain79 79 80 80 CALL trc_nam ! read passive tracers namelists … … 146 146 DO jn = 1, jptra 147 147 #if ! defined key_degrad 148 trai = trai + SUM( trn(:,:,:,jn) * cvol(:,:,:) )148 trai = trai + glob_sum( trn(:,:,:,jn) * cvol(:,:,:) ) 149 149 #else 150 trai = trai + SUM( trn(:,:,:,jn) * cvol(:,:,:) * facvol(:,:,:) ) ! degrad option: reduction by facvol150 trai = trai + glob_sum( trn(:,:,:,jn) * cvol(:,:,:) * facvol(:,:,:) ) ! degrad option: reduction by facvol 151 151 #endif 152 152 END DO 153 IF( lk_mpp ) CALL mpp_sum( trai ) ! sum over the global domain154 155 153 156 154 ! ! control print
Note: See TracChangeset
for help on using the changeset viewer.