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 6905 for branches/2016/dev_r6409_SIMPLIF_2_usrdef/NEMOGCM/NEMO/OPA_SRC/DOM – NEMO

Ignore:
Timestamp:
2016-09-02T10:53:03+02:00 (8 years ago)
Author:
gm
Message:

#1692 - branch SIMPLIF_2_usrdef: OVERFLOW configuration (zps case) + dommsk bug correction

File:
1 edited

Legend:

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

    r6904 r6905  
    130130      ! ---------------------------- 
    131131      ! 
     132      tmask(:,:,:) = 0._wp 
    132133      DO jj = 1, jpj 
    133134         DO ji = 1, jpi 
    134             iktop = MAX( k_top(ji,jj) , 1 ) 
    135             ikbot =      k_bot(ji,jj) 
    136             tmask(ji,jj,      1:iktop-1) = 0._wp      ! mask the iceshelves 
    137             tmask(ji,jj,iktop  :ikbot  ) = 1._wp 
    138             tmask(ji,jj,ikbot+1:jpk    ) = 0._wp      ! mask the ocean topography 
     135            iktop = k_top(ji,jj) 
     136            ikbot = k_bot(ji,jj) 
     137            IF( iktop /= 0 ) THEN       ! water in the column 
     138               tmask(ji,jj,iktop:ikbot  ) = 1._wp 
     139            ENDIF 
    139140         END DO   
    140141      END DO   
Note: See TracChangeset for help on using the changeset viewer.