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 15083 for NEMO/branches/2021 – NEMO

Changeset 15083 for NEMO/branches/2021


Ignore:
Timestamp:
2021-07-05T18:29:04+02:00 (3 years ago)
Author:
techene
Message:

#2605 RGBc debug : ORCA2 tests are now reproducible

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2021/dev_r14318_RK3_stage1/src/OCE/TRA/traqsr.F90

    r15028 r15083  
    789789      DO jk = jpkm1, 1, -1 
    790790         IF( SUM( tmask(:,:,jk) ) > 0 ) THEN    ! ocean point at that level 
    791             zdw  = MAXVAL( gdepw_0(:,:,jk+1) * wmask(:,:,jk) )    ! max w-depth at jk+1 level 
    792             ze3t = MINVAL(   e3t_0(:,:,jk  )                 )    ! minimum e3t at jk   level 
    793             zhext =  - pL * LOG( zcoef * ze3t )                   ! extinction depth 
    794             IF( zdw >= zhext )   klev = jk                        ! last T-level reached by Qsr 
     791            zdw  = MAXVAL( gdepw_0(:,:,jk+1) *       wmask(:,:,jk)        )    ! max w-depth at jk+1 level 
     792            ze3t = MINVAL(   e3t_0(:,:,jk  ) , mask=(wmask(:,:,jk+1)==1)   )    ! minimum e3t at jk   level 
     793            zhext =  - pL * LOG( zcoef * ze3t )                                 ! extinction depth 
     794            IF( zdw >= zhext )   klev = jk                                      ! last T-level reached by Qsr 
    795795         ELSE                                   ! only land point at level jk 
    796             klev = jk                                             ! local domain sea-bed level  
     796            klev = jk                                                           ! local domain sea-bed level  
    797797         ENDIF 
    798798      END DO 
Note: See TracChangeset for help on using the changeset viewer.