Ignore:
Timestamp:
05/26/14 12:41:58 (10 years ago)
Author:
aclsce
Message:

Modifed IPSLCM6 NEMO sources to fit with NEMO revision 4624

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CONFIG/UNIFORM/v6/IPSLCM6/SOURCES/NEMO/trc_oce.F90

    r2189 r2251  
    6767   !!---------------------------------------------------------------------- 
    6868   !! NEMO/OPA 3.3 , NEMO Consortium (2010) 
    69    !! $Id: trc_oce.F90 3770 2013-02-04 10:51:28Z cetlod $  
     69   !! $Id: trc_oce.F90 4623 2014-04-22 15:21:41Z acc $  
    7070   !! Software governed by the CeCILL licence     (NEMOGCM/NEMO_CeCILL.txt) 
    7171   !!---------------------------------------------------------------------- 
     
    178178      zrgb(1,61) = 10.000   ;   zrgb(2,61) = 0.47804   ;   zrgb(3,61) = 0.27178   ;   zrgb(4,61) = 0.56870 
    179179      ! 
     180      ! 
    180181      prgb(:,:) = zrgb(2:4,:) 
    181182      ! 
     
    270271      !!---------------------------------------------------------------------- 
    271272      ! 
    272       ! It is not necessary to compute anything bellow the following depth 
     273      ! It is not necessary to compute anything below the following depth 
    273274      zhext = prldex * ( LOG(10._wp) * zprec + LOG(pqsr_frc) ) 
    274275      ! 
     
    276277      pjl = jpkm1 
    277278      DO jk = jpkm1, 1, -1 
    278          zem = MAXVAL( fsdepw(:,:,jk+1) * tmask(:,:,jk) ) 
    279          IF( zem >= zhext )   pjl = jk                       ! last T-level reached by Qsr 
     279         IF(SUM(tmask(:,:,jk)) > 0 ) THEN 
     280            zem = MAXVAL( fsdepw(:,:,jk+1) * tmask(:,:,jk) ) 
     281            IF( zem >= zhext )   pjl = jk                       ! last T-level reached by Qsr 
     282         ELSE 
     283            pjl = jk                                            ! or regional sea-bed depth  
     284         ENDIF 
    280285      END DO 
    281286      ! 
Note: See TracChangeset for help on using the changeset viewer.