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 2317 for branches/nemo_v3_3_beta/NEMOGCM/NEMO/TOP_SRC/PISCES – NEMO

Ignore:
Timestamp:
2010-10-26T18:01:34+02:00 (14 years ago)
Author:
cetlod
Message:

Improve the computation of the divergence of the downward solar irradiance in traqsr.F90, see ticket #726

  • change fsdepw & fse3t into fsdepw_0 & fse3t_0 in tra_qsr_init
  • modify tra_qsr to recompute systematically etot3 in vvl case
  • suppress the namelist parameter rn_si2 which is computed as the RGB longest depth of extinction in trc_oce.F90
File:
1 edited

Legend:

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

    r2287 r2317  
    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 
     
    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 
     
    235234      !!---------------------------------------------------------------------- 
    236235 
    237       !                                ! level of light extinction 
    238       nksrp = trc_oce_ext_lev( rn_si2, 0.33e2 ) 
    239       IF(lwp) THEN 
    240         WRITE(numout,*) 
    241         WRITE(numout,*) ' level max of computation of qsr = ', nksrp, ' ref depth = ', gdepw_0(nksrp+1), ' m' 
    242       ENDIF 
    243 !!      CALL trc_oce_rgb( xkrgb )     ! tabulated attenuation coefficients 
    244       CALL trc_oce_rgb_read( xkrgb )     ! tabulated attenuation coefficients 
     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      ! 
    245241      etot (:,:,:) = 0.e0 
    246242      enano(:,:,:) = 0.e0 
    247243      ediat(:,:,:) = 0.e0 
    248       IF( ln_qsr_bio ) etot3(:,:,:) = 0.e0 
     244      IF( ln_qsr_bio )   etot3(:,:,:) = 0.e0 
     245 
    249246      !  
    250247   END SUBROUTINE p4z_opt_init 
Note: See TracChangeset for help on using the changeset viewer.