Changeset 11993 for NEMO/trunk/src/TOP/PISCES/P4Z/p4zflx.F90
- Timestamp:
- 2019-11-28T11:20:53+01:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
NEMO/trunk/src/TOP/PISCES/P4Z/p4zflx.F90
r11989 r11993 160 160 zfld = zfco2 * chemc(ji,jj,1) * zkgco2(ji,jj) ! (mol/L) * (m/s) 161 161 zflu = zh2co3(ji,jj) * zkgco2(ji,jj) ! (mol/L) (m/s) ? 162 oce_co2(ji,jj) = ( zfld - zflu ) * tmask(ji,jj,1)162 oce_co2(ji,jj) = ( zfld - zflu ) * rfact2 * e1e2t(ji,jj) * tmask(ji,jj,1) * 1000. 163 163 ! compute the trend 164 tra(ji,jj,1,jpdic) = tra(ji,jj,1,jpdic) + oce_co2(ji,jj) * rfact2 / e3t_n(ji,jj,1)164 tra(ji,jj,1,jpdic) = tra(ji,jj,1,jpdic) + ( zfld - zflu ) * rfact2 / e3t_n(ji,jj,1) * tmask(ji,jj,1) 165 165 166 166 ! Compute O2 flux … … 174 174 IF( iom_use("tcflx") .OR. iom_use("tcflxcum") .OR. kt == nitrst & 175 175 & .OR. (ln_check_mass .AND. kt == nitend) ) & 176 t_oce_co2_flx = glob_sum( 'p4zflx', oce_co2(:,:) * e1e2t(:,:) * 1000.) ! Total Flux of Carbon176 t_oce_co2_flx = glob_sum( 'p4zflx', oce_co2(:,:) ) ! Total Flux of Carbon 177 177 t_oce_co2_flx_cum = t_oce_co2_flx_cum + t_oce_co2_flx ! Cumulative Total Flux of Carbon 178 178 ! t_atm_co2_flx = glob_sum( 'p4zflx', satmco2(:,:) * e1e2t(:,:) ) ! Total atmospheric pCO2 … … 186 186 187 187 IF( lk_iomput .AND. knt == nrdttrc ) THEN 188 CALL iom_put( "AtmCo2" , satmco2(:,:) * tmask(:,:,1) ) ! Atmospheric CO2 concentration189 !190 188 ALLOCATE( zw2d(jpi,jpj) ) 191 189 IF( iom_use( "Cflx" ) ) THEN 192 zw2d(:,:) = oce_co2(:,:) * 1000. ! conversion in molC/m2/s190 zw2d(:,:) = oce_co2(:,:) / e1e2t(:,:) * rfact2r 193 191 CALL iom_put( "Cflx" , zw2d ) 194 192 ENDIF 195 193 IF( iom_use( "Oflx" ) ) THEN 196 zw2d(:,:) = zoflx(:,:) * 1000 .194 zw2d(:,:) = zoflx(:,:) * 1000 * tmask(:,:,1) 197 195 CALL iom_put( "Oflx" , zw2d ) 198 196 ENDIF … … 205 203 CALL iom_put( "Dpco2" , zw2d ) 206 204 ENDIF 207 IF( iom_use( "pCO2sea" ) ) THEN208 zw2d(:,:) = ( zh2co3(:,:) / ( chemc(:,:,1) + rtrn ) ) * tmask(:,:,1)209 CALL iom_put( "pCO2sea" , zw2d )210 ENDIF211 212 205 IF( iom_use( "Dpo2" ) ) THEN 213 206 zw2d(:,:) = ( atcox * patm(:,:) - atcox * trb(:,:,1,jpoxy) / ( chemo2(:,:,1) + rtrn ) ) * tmask(:,:,1) 214 207 CALL iom_put( "Dpo2" , zw2d ) 215 208 ENDIF 216 CALL iom_put( "tcflx" , t_oce_co2_flx 217 CALL iom_put( "tcflxcum" , t_oce_co2_flx_cum ) ! molC209 CALL iom_put( "tcflx" , t_oce_co2_flx * rfact2r ) ! molC/s 210 CALL iom_put( "tcflxcum" , t_oce_co2_flx_cum ) ! molC 218 211 ! 219 212 DEALLOCATE( zw2d )
Note: See TracChangeset
for help on using the changeset viewer.