Changeset 11568
- Timestamp:
- 2019-09-18T17:52:11+02:00 (5 years ago)
- Location:
- NEMO/branches/2019/ENHANCE-02_ISF_domcfg/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
NEMO/branches/2019/ENHANCE-02_ISF_domcfg/src/domisf.F90
r11308 r11568 122 122 ! 1.1 ground ice shelf if water column less than rn_glhw_min m 123 123 ! => set the grounding line position 124 WHERE( bathy(:,:) - risfdep(:,:) < rn_glhw_min )124 WHERE( bathy(:,:) - risfdep(:,:) < rn_glhw_min .AND. risfdep(:,:) > 0.0_wp ) 125 125 bathy (:,:) = 0._wp ; risfdep(:,:) = 0._wp 126 126 END WHERE … … 130 130 DO jj = 1, jpj 131 131 DO ji = 1, jpi 132 IF ( bathy(ji,jj) - risfdep(ji,jj) < rn_isfhw_min ) THEN132 IF ( bathy(ji,jj) - risfdep(ji,jj) < rn_isfhw_min .AND. risfdep(ji,jj) > 0.0_wp ) THEN 133 133 risfdep(ji,jj) = bathy(ji,jj) - rn_isfhw_min 134 134 ! sanity check on risfdep (if < zisfdep_min) … … 145 145 IF (ln_isfchannel) THEN 146 146 imask(:,:) = 0 147 WHERE ( bathy(:,:) > 0._wp .AND. risfdep(:,:) > 0._wp)147 WHERE ( bathy(:,:) > 0._wp ) 148 148 imask(:,:) = 1 149 149 END WHERE 150 150 DO jj = 2, jpjm1 151 151 DO ji = 2, jpim1 152 IF( imask(ji,jj) == 1 ) THEN152 IF( imask(ji,jj) == 1 .AND. risfdep(ji,jj) > 0._wp) THEN 153 153 ! define connexion 154 154 imskip1=imask(ji,jj)*imask(ji+1,jj ) ! 1 = connexion … … 507 507 gdept_0(ji,jj,ik-1) = gdept_0(ji,jj,ik) - e3w_0(ji,jj,ik) 508 508 gdepw_0(ji,jj,ik-1) = gdepw_0(ji,jj,ik) - e3t_0(ji,jj,ik-1) 509 IF ( ik > 2 ) THEN 510 e3w_0 (ji,jj,ik-1) = gdept_0(ji,jj,ik-1) - gdept_0(ji,jj,ik-2) 511 ELSE 512 e3w_0 (ji,jj,ik-1) = 2.0 * gdept_0(ji,jj,ik-1) 513 END IF 509 514 ENDIF 510 515 END DO -
NEMO/branches/2019/ENHANCE-02_ISF_domcfg/src/domzgr.F90
r11308 r11568 612 612 zhmin = gdepw_1d(ik+1) ! minimum depth = ik+1 w-levels 613 613 WHERE( bathy(:,:) <= 0._wp ) ; bathy(:,:) = 0._wp ! min=0 over the lands 614 ELSE WHERE 614 ELSE WHERE ( risfdep == 0._wp ); bathy(:,:) = MAX( zhmin , bathy(:,:) ) ! min=zhmin over the oceans 615 615 END WHERE 616 616 IF(lwp) write(numout,*) 'Minimum ocean depth: ', zhmin, ' minimum number of ocean levels : ', ik
Note: See TracChangeset
for help on using the changeset viewer.