Changeset 4623 for trunk/NEMOGCM/NEMO
- Timestamp:
- 2014-04-22T17:21:41+02:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/NEMOGCM/NEMO/OPA_SRC/trc_oce.F90
r3770 r4623 267 267 !!---------------------------------------------------------------------- 268 268 ! 269 ! It is not necessary to compute anything bel low the following depth269 ! It is not necessary to compute anything below the following depth 270 270 zhext = prldex * ( LOG(10._wp) * zprec + LOG(pqsr_frc) ) 271 271 ! … … 273 273 pjl = jpkm1 274 274 DO jk = jpkm1, 1, -1 275 zem = MAXVAL( fsdepw(:,:,jk+1) * tmask(:,:,jk) ) 276 IF( zem >= zhext ) pjl = jk ! last T-level reached by Qsr 275 IF(SUM(tmask(:,:,jk)) > 0 ) THEN 276 zem = MAXVAL( fsdepw(:,:,jk+1) * tmask(:,:,jk) ) 277 IF( zem >= zhext ) pjl = jk ! last T-level reached by Qsr 278 ELSE 279 pjl = jk ! or regional sea-bed depth 280 ENDIF 277 281 END DO 278 282 !
Note: See TracChangeset
for help on using the changeset viewer.