Changeset 2470
- Timestamp:
- 2010-12-08T16:08:16+01:00 (14 years ago)
- Location:
- trunk/NEMO/OPA_SRC
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/NEMO/OPA_SRC/DYN/dynbfr.F90
r1719 r2470 76 76 ! 77 77 ! Apply stability criteria on absolute value : Min abs(bfr) => Max (bfr) 78 zbfru = MAX( bfrua(ji,jj), fse3u(ji,jj,ikbu )*zinv )79 zbfrv = MAX( bfrva(ji,jj), fse3v(ji,jj,ikbv )*zinv )78 zbfru = MAX( bfrua(ji,jj), fse3u(ji,jj,ikbum1)*zinv ) 79 zbfrv = MAX( bfrva(ji,jj), fse3v(ji,jj,ikbvm1)*zinv ) 80 80 ! 81 ua(ji,jj,ikbum1) = ua(ji,jj,ikbum1) + zbfru * ub(ji,jj,ikbum1) / fse3u(ji,jj,ikbu )82 va(ji,jj,ikbvm1) = va(ji,jj,ikbvm1) + zbfrv * vb(ji,jj,ikbvm1) / fse3v(ji,jj,ikbv )81 ua(ji,jj,ikbum1) = ua(ji,jj,ikbum1) + zbfru * ub(ji,jj,ikbum1) / fse3u(ji,jj,ikbum1) 82 va(ji,jj,ikbvm1) = va(ji,jj,ikbvm1) + zbfrv * vb(ji,jj,ikbvm1) / fse3v(ji,jj,ikbvm1) 83 83 ! 84 84 END DO -
trunk/NEMO/OPA_SRC/DYN/dynspg_ts.F90
r2145 r2470 93 93 !! 94 94 INTEGER :: ji, jj, jk, jn ! dummy loop indices 95 INTEGER :: icycle ! temporary scalar96 INTEGER :: ikbu, ikbv ! temporary scalar95 INTEGER :: icycle ! temporary integers 96 INTEGER :: ikbu, ikbv, ikbum1, ikbvm1 ! - - 97 97 98 98 REAL(wp) :: zraur, zcoef, z2dt_e, z2dt_b ! temporary scalars … … 267 267 ikbu = MIN( mbathy(ji+1,jj), mbathy(ji,jj) ) 268 268 ikbv = MIN( mbathy(ji,jj+1), mbathy(ji,jj) ) 269 ikbum1 = MAX( ikbu-1, 1 ) 270 ikbvm1 = MAX( ikbv-1, 1 ) 271 269 272 ! 270 273 ! Apply stability criteria for bottom friction 271 274 !RBbug for vvl and external mode we may need to 272 275 ! use varying fse3 273 zbfru (ji,jj) = MAX( bfrua(ji,jj), fse3u(ji,jj,ikbu )*zcoef )274 zbfrv (ji,jj) = MAX( bfrva(ji,jj), fse3v(ji,jj,ikbv )*zcoef )276 zbfru (ji,jj) = MAX( bfrua(ji,jj), fse3u(ji,jj,ikbum1)*zcoef ) 277 zbfrv (ji,jj) = MAX( bfrva(ji,jj), fse3v(ji,jj,ikbvm1)*zcoef ) 275 278 END DO 276 279 END DO -
trunk/NEMO/OPA_SRC/ZDF/zdfbfr.F90
r1708 r2470 131 131 USE iom ! I/O module for ehanced bottom friction file 132 132 !! 133 INTEGER :: inum ! logical unit for enhanced bottom friction file134 INTEGER :: ji, jj ! dummy loop indexes135 INTEGER :: ikbu, ikbv ! temporary integers136 INTEGER :: ictu, ictv ! - -137 REAL(wp) :: zminbfr, zmaxbfr ! temporary scalars138 REAL(wp) :: zfru, zfrv ! - -133 INTEGER :: inum ! logical unit for enhanced bottom friction file 134 INTEGER :: ji, jj ! dummy loop indexes 135 INTEGER :: ikbu, ikbv, ikbum1, ikbvm1 ! temporary integers 136 INTEGER :: ictu, ictv ! - - 137 REAL(wp) :: zminbfr, zmaxbfr ! temporary scalars 138 REAL(wp) :: zfru, zfrv ! - - 139 139 !! 140 140 NAMELIST/nambfr/ nn_bfr, rn_bfri1, rn_bfri2, rn_bfeb2, ln_bfr2d, rn_bfrien … … 220 220 ikbu = MIN( mbathy(ji+1,jj ), mbathy(ji,jj) ) 221 221 ikbv = MIN( mbathy(ji ,jj+1), mbathy(ji,jj) ) 222 zfru = 0.5 * fse3u(ji,jj,ikbu) / rdt 223 zfrv = 0.5 * fse3v(ji,jj,ikbv) / rdt 222 ikbum1 = MAX( ikbu-1, 1 ) 223 ikbvm1 = MAX( ikbv-1, 1 ) 224 zfru = 0.5 * fse3u(ji,jj,ikbum1) / rdt 225 zfrv = 0.5 * fse3v(ji,jj,ikbvm1) / rdt 224 226 IF( ABS( bfrcoef2d(ji,jj) ) > zfru ) THEN 225 227 IF( ln_ctl ) THEN
Note: See TracChangeset
for help on using the changeset viewer.