New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Changeset 6715 for branches/NERC/dev_r5518_NOC_MEDUSA_Stable/NEMOGCM/NEMO/TOP_SRC/trcrst.F90 – NEMO

Ignore:
Timestamp:
2016-06-16T18:58:14+02:00 (8 years ago)
Author:
jpalmier
Message:

JPALM -- 16-06-2016 -- MEDUSA branch update :

-- pass co2 flux and dms_surf through restart for atm coupling.
-- introduce CFC cycle for dynamic evolution comparison
-- add Tim Graham Age tracer
-- include MEDUSA Q10 modif
-- svn-key removed
-- still need debug stage

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/NERC/dev_r5518_NOC_MEDUSA_Stable/NEMOGCM/NEMO/TOP_SRC/trcrst.F90

    r6268 r6715  
    239239         zn_dms_din(:,:)  = 0.0 
    240240      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 
    241263      !! 
    242264      !! calculate stats on these fields 
     
    247269      call trc_rst_dia_stat(zn_dms_qsr(:,:), 'DMS, QSR') 
    248270      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') 
    249273#endif 
    250274      ! 
     
    366390      CALL iom_rstput( kt, nitrst, numrtw, 'B_DMS_DIN',  zb_dms_din(:,:)  ) 
    367391      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(:,:)  ) 
    368398      !! 
    369399      !! calculate stats on these fields 
     
    374404      call trc_rst_dia_stat(zn_dms_qsr(:,:), 'DMS, QSR') 
    375405      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') 
    376408      !!  
    377409#endif 
Note: See TracChangeset for help on using the changeset viewer.