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 7041 for branches/2016/dev_r7012_ROBUST5_CNRS/NEMOGCM/NEMO/TOP_SRC/PISCES/trcice_pisces.F90 – NEMO

Ignore:
Timestamp:
2016-10-19T12:55:07+02:00 (8 years ago)
Author:
cetlod
Message:

ROBUST5_CNRS : implementation of part I of new TOP interface - 1st step -, see ticket #1782

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2016/dev_r7012_ROBUST5_CNRS/NEMOGCM/NEMO/TOP_SRC/PISCES/trcice_pisces.F90

    r5725 r7041  
    55   !!====================================================================== 
    66   !! History :  3.5  ! 2013    (M. Vancoppenolle, O. Aumont, G. Madec), original code 
    7    !! Comment ! probably not properly done when the second particle export 
    8    !! scheme (kriest) is used 
    9    !!---------------------------------------------------------------------- 
    10 #if defined key_pisces || defined key_pisces_reduced 
     7   !!---------------------------------------------------------------------- 
     8#if defined key_pisces  
    119   !!---------------------------------------------------------------------- 
    1210   !!   'key_pisces'                                       PISCES bio-model 
     
    3735      !!---------------------------------------------------------------------- 
    3836 
    39       IF( lk_p4z ) THEN  ;   CALL p4z_ice_ini   !  PISCES 
     37      IF( ln_p4z ) THEN  ;   CALL p4z_ice_ini   !  PISCES 
    4038      ELSE               ;   CALL p2z_ice_ini   !  LOBSTER 
    4139      ENDIF 
     
    4543 
    4644   SUBROUTINE p4z_ice_ini 
    47  
    48 #if defined key_pisces  
    4945      !!---------------------------------------------------------------------- 
    5046      !!                   ***  ROUTINE p4z_ice_ini *** 
     
    7571 
    7672                                        !--- Dummy variables 
    77       REAL(wp), DIMENSION(jp_pisces,2)  :: zratio  ! effective ice-ocean tracer cc ratio 
    78       REAL(wp), DIMENSION(jp_pisces,4)  :: zpisc   ! prescribes concentration  
     73      REAL(wp), DIMENSION(:,:), ALLOCATABLE  :: zratio  ! effective ice-ocean tracer cc ratio 
     74      REAL(wp), DIMENSION(:,:), ALLOCATABLE  :: zpisc   ! prescribes concentration  
    7975      !                                            !  1:global, 2:Arctic, 3:Antarctic, 4:Baltic 
    8076 
     
    9995      ! fluxes 
    10096 
     97      ALLOCATE( zratio(jp_pisces,2),  zpisc(jp_pisces,4) ) 
     98   
    10199      !--- Global values 
    102100      zpisc(jpdic,1) =  1.99e-3_wp  
     
    107105      zpisc(jppo4,1) =  5.77e-7_wp / po4r  
    108106      zpisc(jppoc,1) =  1.27e-6_wp   
    109 #  if ! defined key_kriest 
    110107      zpisc(jpgoc,1) =  5.23e-8_wp   
    111108      zpisc(jpbfe,1) =  9.84e-13_wp  
    112 #  else 
    113       zpisc(jpnum,1) = 0. ! could not get this value since did not use it 
    114 #  endif 
    115109      zpisc(jpsil,1) =  7.36e-6_wp   
    116110      zpisc(jpdsi,1) =  1.07e-7_wp  
     
    137131      zpisc(jppo4,2) =  4.09e-7_wp / po4r  
    138132      zpisc(jppoc,2) =  4.05e-7_wp   
    139 #  if ! defined key_kriest 
    140133      zpisc(jpgoc,2) =  2.84e-8_wp   
    141134      zpisc(jpbfe,2) =  7.03e-13_wp  
    142 #  else 
    143       zpisc(jpnum,2) =  0.00e-00_wp  
    144 #  endif 
    145135      zpisc(jpsil,2) =  6.87e-6_wp   
    146136      zpisc(jpdsi,2) =  1.73e-7_wp  
     
    167157      zpisc(jppo4,3) =  1.88e-6_wp / po4r   
    168158      zpisc(jppoc,3) =  1.13e-6_wp   
    169 #  if ! defined key_kriest 
    170159      zpisc(jpgoc,3) =  2.89e-8_wp   
    171160      zpisc(jpbfe,3) =  5.63e-13_wp  
    172 #  else 
    173       zpisc(jpnum,3) =  0.00e-00_wp  
    174 #  endif 
    175161      zpisc(jpsil,3) =  4.96e-5_wp   
    176162      zpisc(jpdsi,3) =  5.63e-7_wp  
     
    197183      zpisc(jppo4,4) = 2.85e-9_wp / po4r 
    198184      zpisc(jppoc,4) = 4.84e-7_wp 
    199 #  if ! defined key_kriest 
    200185      zpisc(jpgoc,4) = 1.05e-8_wp 
    201186      zpisc(jpbfe,4) = 4.97e-13_wp 
    202 #  else 
    203       zpisc(jpnum,4) = 0. ! could not get this value 
    204 #  endif 
    205187      zpisc(jpsil,4) = 4.91e-5_wp 
    206188      zpisc(jpdsi,4) = 3.25e-7_wp 
     
    279261      ! 
    280262      END DO ! jn 
    281 #endif 
     263      ! 
     264      DEALLOCATE( zratio, zpisc ) 
     265      ! 
    282266 
    283267   END SUBROUTINE p4z_ice_ini 
    284268 
    285269   SUBROUTINE p2z_ice_ini 
    286 #if defined key_pisces_reduced  
    287270      !!---------------------------------------------------------------------- 
    288271      !!                   ***  ROUTINE p2z_ice_ini *** 
     
    290273      !! ** Purpose :   Initialisation of the LOBSTER biochemical model 
    291274      !!---------------------------------------------------------------------- 
    292 #endif 
    293275   END SUBROUTINE p2z_ice_ini 
    294276 
Note: See TracChangeset for help on using the changeset viewer.