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 2528 for trunk/NEMOGCM/NEMO/TOP_SRC/PISCES/p4zopt.F90 – NEMO

Ignore:
Timestamp:
2010-12-27T18:33:53+01:00 (13 years ago)
Author:
rblod
Message:

Update NEMOGCM from branch nemo_v3_3_beta

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMOGCM/NEMO/TOP_SRC/PISCES/p4zopt.F90

    • Property svn:executable deleted
    r1836 r2528  
    1616   USE trc            ! tracer variables 
    1717   USE oce_trc        ! tracer-ocean share variables 
    18    USE trc_oce        ! ocean-tracer share variables 
    1918   USE sms_pisces     ! Source Minus Sink of PISCES 
    2019   USE iom 
     
    2322   PRIVATE 
    2423 
    25    PUBLIC   p4z_opt   ! called in p4zbio.F90 module 
     24   PUBLIC   p4z_opt        ! called in p4zbio.F90 module 
     25   PUBLIC   p4z_opt_init   ! called in trcsms_pisces.F90 module 
    2626 
    2727   REAL(wp), PUBLIC, DIMENSION(jpi,jpj,jpk) ::   etot, enano, ediat   !: PAR for phyto, nano and diat  
    2828   REAL(wp), PUBLIC, DIMENSION(jpi,jpj,jpk) ::   emoy                 !: averaged PAR in the mixed layer 
    2929 
    30    INTEGER  ::   nksrp   ! levels below which the light cannot penetrate ( depth larger than 391 m) 
    31    REAL(wp) ::   & 
    32       parlux = 0.43 / 3.e0 
     30   INTEGER  ::  nksrp   ! levels below which the light cannot penetrate ( depth larger than 391 m) 
     31   REAL(wp) ::  parlux = 0.43 / 3.e0 
    3332 
    3433   REAL(wp), DIMENSION(3,61), PUBLIC ::   xkrgb  !: tabulated attenuation coefficients for RGB absorption 
     
    3736#  include "top_substitute.h90" 
    3837   !!---------------------------------------------------------------------- 
    39    !! NEMO/TOP 2.0 , LOCEAN-IPSL (2007)  
     38   !! NEMO/TOP 3.3 , NEMO Consortium (2010) 
    4039   !! $Id$  
    41    !! Software governed by the CeCILL licence (modipsl/doc/NEMO_CeCILL.txt) 
     40   !! Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt) 
    4241   !!---------------------------------------------------------------------- 
    4342 
    4443CONTAINS 
    4544 
    46    SUBROUTINE p4z_opt(kt, jnt) 
     45   SUBROUTINE p4z_opt( kt, jnt ) 
    4746      !!--------------------------------------------------------------------- 
    4847      !!                     ***  ROUTINE p4z_opt  *** 
     
    5453      !!--------------------------------------------------------------------- 
    5554      INTEGER, INTENT(in) ::   kt, jnt ! ocean time step 
    56       INTEGER  ::   ji, jj, jk, jc 
     55      INTEGER  ::   ji, jj, jk 
    5756      INTEGER  ::   irgb 
    5857      REAL(wp) ::   zchl, zxsi0r 
     
    6463 
    6564 
    66       !                                        !* tabulated attenuation coef.  
    67       IF( kt * jnt == nittrc000 ) THEN 
    68          !                                ! level of light extinction 
    69          nksrp = trc_oce_ext_lev( rn_si2, 0.33e2 ) 
    70          IF(lwp) THEN 
    71            WRITE(numout,*) 
    72            WRITE(numout,*) ' level max of computation of qsr = ', nksrp, ' ref depth = ', gdepw_0(nksrp+1), ' m' 
    73          ENDIF 
    74 !!         CALL trc_oce_rgb( xkrgb )     ! tabulated attenuation coefficients 
    75          CALL trc_oce_rgb_read( xkrgb )     ! tabulated attenuation coefficients 
    76          etot (:,:,:) = 0.e0 
    77          enano(:,:,:) = 0.e0 
    78          ediat(:,:,:) = 0.e0 
    79          IF( ln_qsr_bio ) etot3(:,:,:) = 0.e0 
    80       ENDIF 
    81  
    82  
    83 !     Initialisation of variables used to compute PAR 
    84 !     ----------------------------------------------- 
     65      !     Initialisation of variables used to compute PAR 
     66      !     ----------------------------------------------- 
    8567      ze1 (:,:,jpk) = 0.e0 
    8668      ze2 (:,:,jpk) = 0.e0 
     
    227209      END DO 
    228210 
    229 #if defined key_trc_diaadd 
     211#if defined key_diatrc 
    230212# if ! defined key_iomput 
    231213      ! save for outputs 
     
    243225   END SUBROUTINE p4z_opt 
    244226 
     227   SUBROUTINE p4z_opt_init 
     228      !!---------------------------------------------------------------------- 
     229      !!                  ***  ROUTINE p4z_opt_init  *** 
     230      !! 
     231      !! ** Purpose :   Initialization of tabulated attenuation coef 
     232      !! 
     233      !! 
     234      !!---------------------------------------------------------------------- 
     235 
     236      CALL trc_oce_rgb( xkrgb )                  ! tabulated attenuation coefficients 
     237!!      CALL trc_oce_rgb_read( xkrgb )               ! tabulated attenuation coefficients 
     238      nksrp = trc_oce_ext_lev( r_si2, 0.33e2 )     ! max level of light extinction (Blue Chl=0.01) 
     239      IF(lwp) WRITE(numout,*) '        level of light extinction = ', nksrp, ' ref depth = ', gdepw_0(nksrp+1), ' m' 
     240      ! 
     241                         etot (:,:,:) = 0.e0 
     242                         enano(:,:,:) = 0.e0 
     243                         ediat(:,:,:) = 0.e0 
     244      IF( ln_qsr_bio )   etot3(:,:,:) = 0.e0 
     245      !  
     246   END SUBROUTINE p4z_opt_init 
    245247#else 
    246248   !!---------------------------------------------------------------------- 
Note: See TracChangeset for help on using the changeset viewer.