Changeset 2528 for trunk/NEMOGCM/NEMO/TOP_SRC/PISCES/p4zopt.F90
- Timestamp:
- 2010-12-27T18:33:53+01:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/NEMOGCM/NEMO/TOP_SRC/PISCES/p4zopt.F90
- Property svn:executable deleted
r1836 r2528 16 16 USE trc ! tracer variables 17 17 USE oce_trc ! tracer-ocean share variables 18 USE trc_oce ! ocean-tracer share variables19 18 USE sms_pisces ! Source Minus Sink of PISCES 20 19 USE iom … … 23 22 PRIVATE 24 23 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 26 26 27 27 REAL(wp), PUBLIC, DIMENSION(jpi,jpj,jpk) :: etot, enano, ediat !: PAR for phyto, nano and diat 28 28 REAL(wp), PUBLIC, DIMENSION(jpi,jpj,jpk) :: emoy !: averaged PAR in the mixed layer 29 29 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 33 32 34 33 REAL(wp), DIMENSION(3,61), PUBLIC :: xkrgb !: tabulated attenuation coefficients for RGB absorption … … 37 36 # include "top_substitute.h90" 38 37 !!---------------------------------------------------------------------- 39 !! NEMO/TOP 2.0 , LOCEAN-IPSL (2007)38 !! NEMO/TOP 3.3 , NEMO Consortium (2010) 40 39 !! $Id$ 41 !! Software governed by the CeCILL licence ( modipsl/doc/NEMO_CeCILL.txt)40 !! Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt) 42 41 !!---------------------------------------------------------------------- 43 42 44 43 CONTAINS 45 44 46 SUBROUTINE p4z_opt( kt, jnt)45 SUBROUTINE p4z_opt( kt, jnt ) 47 46 !!--------------------------------------------------------------------- 48 47 !! *** ROUTINE p4z_opt *** … … 54 53 !!--------------------------------------------------------------------- 55 54 INTEGER, INTENT(in) :: kt, jnt ! ocean time step 56 INTEGER :: ji, jj, jk , jc55 INTEGER :: ji, jj, jk 57 56 INTEGER :: irgb 58 57 REAL(wp) :: zchl, zxsi0r … … 64 63 65 64 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 ! ----------------------------------------------- 85 67 ze1 (:,:,jpk) = 0.e0 86 68 ze2 (:,:,jpk) = 0.e0 … … 227 209 END DO 228 210 229 #if defined key_ trc_diaadd211 #if defined key_diatrc 230 212 # if ! defined key_iomput 231 213 ! save for outputs … … 243 225 END SUBROUTINE p4z_opt 244 226 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 245 247 #else 246 248 !!----------------------------------------------------------------------
Note: See TracChangeset
for help on using the changeset viewer.