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 9292 for branches/UKMO/dev_r5518_GO6_package_asm_3d_bgc/NEMOGCM/NEMO/TOP_SRC/MEDUSA/trcbio_medusa.F90 – NEMO

Ignore:
Timestamp:
2018-01-30T19:41:58+01:00 (6 years ago)
Author:
dford
Message:

Merge in changes from dev_r5518_GO6_package_asm_surf_bgc_v2.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/UKMO/dev_r5518_GO6_package_asm_3d_bgc/NEMOGCM/NEMO/TOP_SRC/MEDUSA/trcbio_medusa.F90

    r9257 r9292  
    102102      !! JPALM (27-06-2016): add lk_oasis for CO2 and DMS coupling with atm 
    103103      USE sbc_oce,                    ONLY: lk_oasis 
     104# if defined key_foam_medusa 
     105      USE sms_medusa,                 ONLY: hist_pco2, xobs_xco2a,          & 
     106                                            pgrow_avg, ploss_avg,           & 
     107                                            phyt_avg, mld_max 
     108# else 
    104109      USE sms_medusa,                 ONLY: hist_pco2 
     110# endif 
    105111      USE trc,                        ONLY: ln_rsttr, nittrc000, trn 
    106112      USE bio_medusa_init_mod,        ONLY: bio_medusa_init 
     
    319325         f_xco2a(:,:) = fq4 
    320326      endif 
     327#  if defined key_foam_medusa 
     328      IF ( xobs_xco2a > 0.0 ) THEN 
     329         IF(lwp) WRITE(numout,*) ' using observed atm pCO2 = ', xobs_xco2a 
     330         f_xco2a(:,:) = xobs_xco2a 
     331      ELSE 
     332         IF(lwp) WRITE(numout,*) ' xobs_xco2a <= 0 so using default atm pCO2' 
     333      ENDIF 
     334#  endif 
    321335#  if defined key_axy_pi_co2 
    322336      !! OCMIP pre-industrial pCO2 
     
    358372      !!          x * 30d + 1*rdt(i.e: mod = rdt)    
    359373      !!          ++ need to pass carb-chem output var through restarts 
     374#if defined key_foam_medusa 
     375      !! DAF (Aug 2017): For FOAM we want to run daily 
     376      If ( (kt == nittrc000 .AND. .NOT.ln_rsttr) .OR.                        & 
     377           (mod(kt*rdt,86400.) == rdt) ) THEN 
     378#else 
    360379      If ( (kt == nittrc000 .AND. .NOT.ln_rsttr) .OR.                        & 
    361380           ((86400*mod(nn_date0,100) + mod(kt*rdt,2592000.)) == rdt) ) THEN 
    362          !!--------------------------------------------------------------- 
     381#endif 
     382         !!---------------------------------------------------------------------- 
    363383         !! Calculate the carbonate chemistry for the whole ocean on the first 
    364384         !! simulation timestep and every month subsequently; the resulting 3D 
Note: See TracChangeset for help on using the changeset viewer.