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

Ignore:
Timestamp:
2008-09-11T18:41:47+02:00 (16 years ago)
Author:
cetlod
Message:

update PISCES modules to couple with the sediment model, see ticket:249

File:
1 edited

Legend:

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

    r1152 r1180  
    2727      etot, enano, ediat,       &  !: PAR for phyto, nano and diat  
    2828      emoy                         !: averaged PAR in the mixed layer 
    29    REAL(wp), PUBLIC, DIMENSION(jpi,jpj) ::   &   !: 
    30       heup                         !: Depth of the euphotic zone 
    3129 
    3230   !! * Module variables 
     
    210208!     Computation of the euphotic depth 
    211209!     --------------------------------- 
    212      
    213       heup(:,:) = 300.e0 
     210      ! Euphotic layer bottom level 
     211      neln(:,:) = 1                                           ! initialisation of EL level 
     212      heup(:,:) = 300. 
    214213 
    215214      DO jk = 2, jpkm1 
    216215         DO jj = 1, jpj 
    217             DO ji = 1, jpi 
    218                IF( etot(ji,jj,jk) >= 0.0043 * qsr(ji,jj) )   heup(ji,jj) = fsdepw(ji,jj,jk+1) 
    219             END DO 
    220          END DO 
    221       END DO 
    222  
    223       heup(:,:) = MIN( 300., heup(:,:) ) 
     216           DO ji = 1, jpi 
     217              IF( etot(ji,jj,jk) >= 0.0043 * qsr(ji,jj) )  THEN 
     218                 neln(ji,jj) = jk+1 ! 1rst T-level strictly below EL bottom 
     219              !                                                  ! nb. this is to ensure compatibility with 
     220              !                                                  ! nmld_trc definition in trd_mld_trc_zint 
     221                heup(ji,jj) = fsdepw(ji,jj,jk+1)                 ! Euphotic layer depth 
     222             ENDIF 
     223          END DO 
     224        END DO 
     225     ENDDO 
     226  
     227     heup(:,:) = MIN( 300., heup(:,:) ) 
    224228 
    225229!    Computation of the mean light over the mixed layer depth 
Note: See TracChangeset for help on using the changeset viewer.