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 6904 for branches/2016/dev_r6409_SIMPLIF_2_usrdef/NEMOGCM/NEMO/OPA_SRC/DOM/dommsk.F90 – NEMO

Ignore:
Timestamp:
2016-09-01T12:17:31+02:00 (8 years ago)
Author:
gm
Message:

#1692 - branch SIMPLIF_2_usrdef: OVERFLOW configuration (zco & sco) + small bug corrections

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2016/dev_r6409_SIMPLIF_2_usrdef/NEMOGCM/NEMO/OPA_SRC/DOM/dommsk.F90

    r6717 r6904  
    132132      DO jj = 1, jpj 
    133133         DO ji = 1, jpi 
    134             iktop = k_top(ji,jj) 
    135             ikbot = k_bot(ji,jj) 
     134            iktop = MAX( k_top(ji,jj) , 1 ) 
     135            ikbot =      k_bot(ji,jj) 
    136136            tmask(ji,jj,      1:iktop-1) = 0._wp      ! mask the iceshelves 
    137137            tmask(ji,jj,iktop  :ikbot  ) = 1._wp 
    138             tmask(ji,jj,ikbot+1:jpkglo ) = 0._wp      ! mask the ocean topography 
     138            tmask(ji,jj,ikbot+1:jpk    ) = 0._wp      ! mask the ocean topography 
    139139         END DO   
    140140      END DO   
Note: See TracChangeset for help on using the changeset viewer.