Changeset 9006 for branches/2017/dev_METO_MERCATOR_2017_agrif/NEMOGCM/NEMO/NST_SRC/agrif_opa_update.F90
- Timestamp:
- 2017-12-13T12:14:44+01:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2017/dev_METO_MERCATOR_2017_agrif/NEMOGCM/NEMO/NST_SRC/agrif_opa_update.F90
r8998 r9006 309 309 DO jj=j1,j2 310 310 DO ji=i1,i2 311 tabres(ji,jj,jk,jn) = (tsn(ji,jj,jk,jn) * e 1e2t(ji,jj) * e3t_n(ji,jj,jk) ) &312 * tmask(ji,jj,jk) * zrho_xy+ (tmask(ji,jj,jk)-1)*999._wp311 tabres(ji,jj,jk,jn) = (tsn(ji,jj,jk,jn) * e3t_n(ji,jj,jk) ) & 312 * tmask(ji,jj,jk) + (tmask(ji,jj,jk)-1)*999._wp 313 313 END DO 314 314 END DO … … 318 318 DO jj=j1,j2 319 319 DO ji=i1,i2 320 tabres(ji,jj,jk,n2) = tmask(ji,jj,jk) * e 1e2t(ji,jj) * e3t_n(ji,jj,jk) * zrho_xy&320 tabres(ji,jj,jk,n2) = tmask(ji,jj,jk) * e3t_n(ji,jj,jk) & 321 321 + (tmask(ji,jj,jk)-1)*999._wp 322 322 END DO … … 333 333 N_in = N_in + 1 334 334 tabin(jk,:) = tabres(ji,jj,jk,n1:n2-1)/tabres(ji,jj,jk,n2) 335 h_in(N_in) = tabres(ji,jj,jk,n2) /e1e2t(ji,jj)335 h_in(N_in) = tabres(ji,jj,jk,n2) 336 336 ENDDO 337 337 N_out = 0 … … 339 339 IF (tmask(ji,jj,jk) < -900) EXIT ! TODO: Will not work with ISF 340 340 N_out = N_out + 1 341 h_out(N_out) = e3t_n(ji,jj,jk) !Parent grid scale factors. Could multiply by e1e2t here instead of division above341 h_out(N_out) = e3t_n(ji,jj,jk) 342 342 ENDDO 343 343 IF (N_in > 0) THEN !Remove this?
Note: See TracChangeset
for help on using the changeset viewer.