Changeset 12871 for utils/tools_ticket2457/DOMAINcfg/src/domisf.F90
- Timestamp:
- 2020-05-05T17:57:08+02:00 (9 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
utils/tools_ticket2457/DOMAINcfg/src/domisf.F90
r12414 r12871 109 109 INTEGER :: ji, jj ! loop indexes 110 110 INTEGER :: imskjp1, imskjm1, imskip1, imskim1 ! local variable 111 INTEGER :: ibtest, icompt ! local variables 111 112 INTEGER, DIMENSION(jpi,jpj) :: imask ! isf mask 112 113 ! 114 REAL(wp) :: zdummy ! dummy variable used for the lnclnk 113 115 REAL(wp) :: zisfdep_min ! minimal ice shelf draft allowed 114 116 !!--------------------------------------------------------------------- 117 ! 118 ! 0.0 fill isolated grid point in the bathymetry 119 ! will be done again later on in zgr_bat_ctl, but need to be done here to adjust risfdep/misfdep respectively 120 icompt = 0 121 DO jj = 2, jpjm1 122 DO ji = 2, jpim1 123 ibtest = MAX( mbathy(ji-1,jj), mbathy(ji+1,jj), & 124 & mbathy(ji,jj-1), mbathy(ji,jj+1) ) 125 IF( ibtest < mbathy(ji,jj) ) THEN 126 mbathy(ji,jj) = ibtest 127 bathy(ji,jj) = gdepw_1d(ibtest+1) 128 icompt = icompt + 1 129 END IF 130 END DO 131 END DO 132 ! 133 ! ensure halo correct 134 zdummy(:,:) = FLOAT( mbathy(:,:) ) ; CALL lbc_lnk('domisf', zdummy, 'T', 1._wp ) ; mbathy(:,:) = INT( zdummy(:,:) ) 135 ! 136 IF( lk_mpp ) CALL mpp_sum('domisf', icompt ) 137 IF( icompt == 0 ) THEN 138 IF(lwp) WRITE(numout,*)' no isolated ocean grid points' 139 ELSE 140 IF(lwp) WRITE(numout,*)' ',icompt,' ocean grid points suppressed' 141 ENDIF 115 142 ! 116 143 ! 1.0 set iceshelf to the minimum depth allowed … … 220 247 WHERE( risfdep(:,:) > 0._wp .AND. risfdep(:,:) >= zdepth ) misfdep(:,:) = jk+1 221 248 END DO 222 !223 ! 2.1 fill isolated grid point in the bathymetry224 ! will be done again later on in zgr_bat_ctl, but need to be done here to adjust misfdep respectively225 icompt = 0226 DO jj = 2, jpjm1227 DO ji = 2, jpim1228 ibtest = MAX( mbathy(ji-1,jj), mbathy(ji+1,jj), &229 & mbathy(ji,jj-1), mbathy(ji,jj+1) )230 IF( ibtest < mbathy(ji,jj) ) THEN231 mbathy(ji,jj) = ibtest232 icompt = icompt + 1233 END IF234 END DO235 END DO236 !237 ! ensure halo correct238 zdummy(:,:) = FLOAT( mbathy(:,:) ) ; CALL lbc_lnk('domisf', zdummy, 'T', 1._wp ) ; mbathy(:,:) = INT( zdummy(:,:) )239 !240 IF( lk_mpp ) CALL mpp_sum('domisf', icompt )241 IF( icompt == 0 ) THEN242 IF(lwp) WRITE(numout,*)' no isolated ocean grid points'243 ELSE244 IF(lwp) WRITE(numout,*)' ',icompt,' ocean grid points suppressed'245 ENDIF246 249 ! 247 250 ! 2.2 be sure misfdep not below mbathy
Note: See TracChangeset
for help on using the changeset viewer.