- Timestamp:
- 2016-06-16T18:58:14+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/NERC/dev_r5518_NOC_MEDUSA_Stable/NEMOGCM/NEMO/TOP_SRC/trcrst.F90
r6268 r6715 239 239 zn_dms_din(:,:) = 0.0 240 240 ENDIF 241 !! 242 !! JPALM 14-06-2016 -- add CO2 flux and DMS surf through the restart 243 !! -- needed for the coupling with atm 244 IF( iom_varid( numrtr, 'B_DMS_srf', ldstop = .FALSE. ) > 0 ) THEN 245 IF(lwp) WRITE(numout,*) 'DMS surf concentration - reading in ...' 246 CALL iom_get( numrtr, jpdom_autoglo, 'B_DMS_srf', zb_dms_srf(:,:) ) 247 CALL iom_get( numrtr, jpdom_autoglo, 'N_DMS_srf', zn_dms_srf(:,:) ) 248 ELSE 249 IF(lwp) WRITE(numout,*) 'DMS surf concentration - setting to zero ...' 250 zb_dms_srf(:,:) = 0.0 !! DMS 251 zn_dms_srf(:,:) = 0.0 252 ENDIF 253 !! 254 IF( iom_varid( numrtr, 'B_CO2_flx', ldstop = .FALSE. ) > 0 ) THEN 255 IF(lwp) WRITE(numout,*) 'CO2 air-sea flux - reading in ...' 256 CALL iom_get( numrtr, jpdom_autoglo, 'B_CO2_flx', zb_co2_flx(:,:) ) 257 CALL iom_get( numrtr, jpdom_autoglo, 'N_CO2_flx', zn_co2_flx(:,:) ) 258 ELSE 259 IF(lwp) WRITE(numout,*) 'CO2 air-sea flux - setting to zero ...' 260 zb_co2_flx(:,:) = 0.0 !! CO2 flx 261 zn_co2_flx(:,:) = 0.0 262 ENDIF 241 263 !! 242 264 !! calculate stats on these fields … … 247 269 call trc_rst_dia_stat(zn_dms_qsr(:,:), 'DMS, QSR') 248 270 call trc_rst_dia_stat(zn_dms_din(:,:), 'DMS, DIN') 271 call trc_rst_dia_stat(zn_dms_srf(:,:), 'DMS surf') 272 call trc_rst_dia_stat(zn_co2_flx(:,:), 'CO2 flux') 249 273 #endif 250 274 ! … … 366 390 CALL iom_rstput( kt, nitrst, numrtw, 'B_DMS_DIN', zb_dms_din(:,:) ) 367 391 CALL iom_rstput( kt, nitrst, numrtw, 'N_DMS_DIN', zn_dms_din(:,:) ) 392 !! JPALM 14-06-2016 -- add CO2 flux and DMS surf through the restart 393 !! -- needed for the coupling with atm 394 CALL iom_rstput( kt, nitrst, numrtw, 'B_DMS_srf', zb_dms_srf(:,:) ) 395 CALL iom_rstput( kt, nitrst, numrtw, 'N_DMS_srf', zn_dms_srf(:,:) ) 396 CALL iom_rstput( kt, nitrst, numrtw, 'B_CO2_flx', zb_co2_flx(:,:) ) 397 CALL iom_rstput( kt, nitrst, numrtw, 'N_CO2_flx', zn_co2_flx(:,:) ) 368 398 !! 369 399 !! calculate stats on these fields … … 374 404 call trc_rst_dia_stat(zn_dms_qsr(:,:), 'DMS, QSR') 375 405 call trc_rst_dia_stat(zn_dms_din(:,:), 'DMS, DIN') 406 call trc_rst_dia_stat(zn_dms_srf(:,:), 'DMS surf') 407 call trc_rst_dia_stat(zn_co2_flx(:,:), 'CO2 flux') 376 408 !! 377 409 #endif
Note: See TracChangeset
for help on using the changeset viewer.