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/sms_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/sms_medusa.F90

    r9258 r9292  
    212212   REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:)   :: f2_ccd_arg  !: 2D aragonite CCD depth 
    213213!! 
     214#if defined key_foam_medusa 
     215!! 2D fields of pCO2 and fCO2 for observation operator 
     216   REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:)   :: f2_pco2w    !: 2D pCO2 
     217   REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:)   :: f2_fco2w    !: 2D fCO2 
     218!! 
     219#endif 
    214220!! 2D fields of organic and inorganic material sedimented on the seafloor 
    215221   REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:)   :: zb_sed_n    !: 2D organic nitrogen   (before) 
     
    391397      & 926.4960, 935.7040 / 
    392398# endif 
     399# if defined key_foam_medusa 
     400   REAL(wp) ::   xobs_xco2a   !: Observed atmospheric xCO2, read in 
     401# endif 
    393402#endif 
    394403 
     
    441450   REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:)   :: cmask       !: ??? 
    442451 
     452#if defined key_foam_medusa 
     453!!---------------------------------------------------------------------- 
     454!! Parameters required for ocean colour assimilation 
     455!!---------------------------------------------------------------------- 
     456!! 
     457   REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:) :: pgrow_avg  !: Mixed layer average phytoplankton growth 
     458   REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:) :: ploss_avg  !: Mixed layer average phytoplankton loss 
     459   REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:) :: phyt_avg   !: Mixed layer average phytoplankton 
     460   REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:) :: mld_max    !: Maximum mixed layer depth 
     461!! 
     462#endif 
     463 
    443464   !!---------------------------------------------------------------------- 
    444465   !! NEMO/TOP 3.3 , NEMO Consortium (2010) 
     
    453474      !!---------------------------------------------------------------------- 
    454475      USE lib_mpp , ONLY: ctl_warn 
    455       INTEGER ::   ierr(8)        ! Local variables 
     476      INTEGER ::   ierr(9)        ! Local variables 
    456477      !!---------------------------------------------------------------------- 
    457478      ierr(:) = 0 
     
    463484      !* 2D and 3D fields of carbonate system parameters 
    464485      ALLOCATE( f2_ccd_cal(jpi,jpj)  , f2_ccd_arg(jpi,jpj)  ,       & 
     486#  if defined key_foam_medusa 
     487                f2_pco2w(jpi,jpj)    , f2_fco2w(jpi,jpj)    ,       & 
     488#  endif 
    465489         &      f3_pH(jpi,jpj,jpk)   , f3_h2co3(jpi,jpj,jpk),       & 
    466490         &      f3_hco3(jpi,jpj,jpk) , f3_co3(jpi,jpj,jpk)  ,       & 
     
    511535         &      ffln(jpi,jpj,jpk)    , fflf(jpi,jpj,jpk)    ,       & 
    512536         &      ffls(jpi,jpj,jpk)    , cmask(jpi,jpj)       ,    STAT=ierr(8) )  
     537# if defined key_foam_medusa 
     538      ALLOCATE( pgrow_avg(jpi,jpj)   , ploss_avg(jpi,jpj)   ,       & 
     539         &      phyt_avg(jpi,jpj)    , mld_max(jpi,jpj)     ,    STAT=ierr(9) ) 
     540# endif 
    513541#endif 
    514542      ! 
Note: See TracChangeset for help on using the changeset viewer.