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 10141 for branches/UKMO/dev_r5518_GO6_package_asm_3d_bgc_v3/NEMOGCM/NEMO/TOP_SRC/MEDUSA/sms_medusa.F90 – NEMO

Ignore:
Timestamp:
2018-09-19T17:14:46+02:00 (6 years ago)
Author:
dford
Message:

Change cpp key key_foam_medusa to a logical switch ln_foam_medusa.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/UKMO/dev_r5518_GO6_package_asm_3d_bgc_v3/NEMOGCM/NEMO/TOP_SRC/MEDUSA/sms_medusa.F90

    r10055 r10141  
    212212   REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:)   :: f2_ccd_arg  !: 2D aragonite CCD depth 
    213213!! 
    214 #if defined key_foam_medusa 
    215214!! 2D fields of pCO2 and fCO2 for observation operator 
    216215   REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:)   :: f2_pco2w    !: 2D pCO2 
    217216   REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:)   :: f2_fco2w    !: 2D fCO2 
    218217!! 
    219 #endif 
    220218!! 2D fields of organic and inorganic material sedimented on the seafloor 
    221219   REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:)   :: zb_sed_n    !: 2D organic nitrogen   (before) 
     
    295293   INTEGER  :: co2_rec 
    296294   REAL(wp) :: co2_yinit, co2_yend    !: First and Last year read in the xCO2.atm file 
     295   REAL(wp) :: xobs_xco2a             !: Observed atmospheric xCO2, from namelist 
    297296#endif 
    298297 
     
    305304#else 
    306305   LOGICAL , PUBLIC ::   lk_pi_co2 = .FALSE. !: PI xCO2 unused 
    307 # if defined key_foam_medusa 
    308    REAL(wp) ::   xobs_xco2a   !: Observed atmospheric xCO2, read in 
    309 # endif 
    310306#endif 
    311307 
     
    358354   REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:)   :: cmask       !: ??? 
    359355 
    360 #if defined key_foam_medusa 
    361356!!---------------------------------------------------------------------- 
    362357!! Parameters required for ocean colour assimilation 
    363358!!---------------------------------------------------------------------- 
    364359!! 
     360   LOGICAL :: ln_foam_medusa                                 !: Flag to calculate and save diagnostics 
    365361   REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:) :: pgrow_avg  !: Mixed layer average phytoplankton growth 
    366362   REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:) :: ploss_avg  !: Mixed layer average phytoplankton loss 
     
    368364   REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:) :: mld_max    !: Maximum mixed layer depth 
    369365!! 
    370 #endif 
    371366 
    372367   !!---------------------------------------------------------------------- 
     
    392387      !* 2D and 3D fields of carbonate system parameters 
    393388      ALLOCATE( f2_ccd_cal(jpi,jpj)  , f2_ccd_arg(jpi,jpj)  ,       & 
    394 #  if defined key_foam_medusa 
    395389                f2_pco2w(jpi,jpj)    , f2_fco2w(jpi,jpj)    ,       & 
    396 #  endif 
    397390         &      f3_pH(jpi,jpj,jpk)   , f3_h2co3(jpi,jpj,jpk),       & 
    398391         &      f3_hco3(jpi,jpj,jpk) , f3_co3(jpi,jpj,jpk)  ,       & 
     
    443436         &      ffln(jpi,jpj,jpk)    , fflf(jpi,jpj,jpk)    ,       & 
    444437         &      ffls(jpi,jpj,jpk)    , cmask(jpi,jpj)       ,    STAT=ierr(8) )  
    445 # if defined key_foam_medusa 
     438      !* Fields for ocean colour data assimilation 
    446439      ALLOCATE( pgrow_avg(jpi,jpj)   , ploss_avg(jpi,jpj)   ,       & 
    447440         &      phyt_avg(jpi,jpj)    , mld_max(jpi,jpj)     ,    STAT=ierr(9) ) 
    448 # endif 
    449441#endif 
    450442      ! 
Note: See TracChangeset for help on using the changeset viewer.