- Timestamp:
- 2019-11-08T12:26:42+01:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
NEMO/branches/2019/ENHANCE-02_ISF_nemo/src/OCE/ISF/isftbl.F90
r11852 r11876 16 16 USE isf ! ice shelf variables 17 17 18 USE dom_oce ! vertical scale factor 18 USE dom_oce ! vertical scale factor and depth 19 19 20 20 IMPLICIT NONE … … 250 250 INTEGER, DIMENSION(jpi,jpj), INTENT( out) :: ktop ! top level affected by the ice shelf parametrisation 251 251 !!-------------------------- IN ------------------------------------- 252 REAL(wp), DIMENSION(jpi,jpj), INTENT(in 252 REAL(wp), DIMENSION(jpi,jpj), INTENT(inout) :: pdep ! top depth of the parametrisation influence 253 253 !!-------------------------------------------------------------------- 254 254 INTEGER :: ji,jj … … 256 256 !!-------------------------------------------------------------------- 257 257 ! 258 ! compute top level (need to be recomputed each time (z*, z~) 258 ! if we need to recompute the top level at every time stepcompute top level (z*, z~) 259 ! in case of weak ht_n variation we can assume the top level of htbl to be constant 260 ! => only done using gdepw_0 259 261 ! be sure pdep is already correctly bounded 260 262 ! test: this routine run on isfdraft should return mikt … … 263 265 DO ji = 1, jpi 264 266 DO jj = 1, jpj 267 ! comput ktop 265 268 ikt = 2 266 DO WHILE ( gdepw_ n(ji,jj,ikt) <= pdep(ji,jj ) ) ; ikt = ikt + 1 ; END DO269 DO WHILE ( gdepw_0(ji,jj,ikt) <= pdep(ji,jj ) ) ; ikt = ikt + 1 ; END DO 267 270 ktop(ji,jj) = ikt - 1 271 ! 272 ! update pdep 273 pdep(ji,jj) = gdepw_0(ji,jj,ktop(ji,jj)) 268 274 END DO 269 275 END DO
Note: See TracChangeset
for help on using the changeset viewer.