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 5288 for branches/CNRS/dev_r4826_PISCES_QUOTA/NEMOGCM/NEMO/TOP_SRC/PISCES/P4Z/p4zopt.F90 – NEMO

Ignore:
Timestamp:
2015-05-22T18:22:18+02:00 (9 years ago)
Author:
aumont
Message:

various bug fixes and updates of PISCES quota

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/CNRS/dev_r4826_PISCES_QUOTA/NEMOGCM/NEMO/TOP_SRC/PISCES/P4Z/p4zopt.F90

    r5266 r5288  
    88   !!             3.2  !  2009-04  (C. Ethe, G. Madec)  optimisation 
    99   !!             3.4  !  2011-06  (O. Aumont, C. Ethe) Improve light availability of nano & diat 
     10   !!             3.6  !  2015-05  (O. Aumont) PISCES quota 
    1011   !!---------------------------------------------------------------------- 
    1112#if defined  key_pisces || defined key_pisces_quota 
     
    218219      neln(:,:) = 1                            !  ------------------------ 
    219220      heup(:,:) = 300. 
     221      heup_01(:,:) = 300. 
    220222 
    221223      DO jk = 2, nksrp 
    222224         DO jj = 1, jpj 
    223225           DO ji = 1, jpi 
    224               IF( etot(ji,jj,jk) * tmask(ji,jj,jk) >= 0.0043 * qsr(ji,jj) )  THEN 
     226              IF( etot(ji,jj,jk) * tmask(ji,jj,jk) >= 0.01 * parlux * qsr(ji,jj) )  THEN 
    225227                 neln(ji,jj) = jk+1                    ! Euphotic level : 1rst T-level strictly below Euphotic layer 
    226228                 !                                     ! nb: ensure the compatibility with nmld_trc definition in trd_mld_trc_zint 
    227229                 heup(ji,jj) = fsdepw(ji,jj,jk+1)      ! Euphotic layer depth 
    228230              ENDIF 
     231              IF( etot(ji,jj,jk) * tmask(ji,jj,jk) >= 0.1 )  THEN 
     232                 heup_01(ji,jj) = fsdepw(ji,jj,jk+1)      ! Absolute euphotic layer depth 
     233              ENDIF 
    229234           END DO 
    230235        END DO 
    231236      END DO 
    232237  
    233       heup(:,:) = MIN( 300., heup(:,:) ) 
     238      heup(:,:)    = MIN( 300., heup(:,:) ) 
     239      heup_01(:,:) = MIN( 300., heup_01(:,:) ) 
    234240 
    235241      !                                        !* mean light over the mixed layer 
     
    284290        IF( lk_iomput ) THEN 
    285291           IF( jnt == nrdttrc ) THEN 
    286               CALL iom_put( "Heup", heup(:,:  ) * tmask(:,:,1) )  ! euphotic layer deptht 
     292              CALL iom_put( "Heup", heup_01(:,:  ) * tmask(:,:,1) )  ! euphotic layer deptht 
    287293              CALL iom_put( "PAR" , emoy(:,:,:) * tmask(:,:,:) )  ! Photosynthetically Available Radiation 
    288294           ENDIF 
Note: See TracChangeset for help on using the changeset viewer.