- Timestamp:
- 2019-12-11T16:56:06+01:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
NEMO/branches/2019/dev_r12072_MERGE_OPTION2_2019/src/OCE/DYN/dynspg_ts.F90
r12184 r12191 505 505 ! ! values of zhup2_e and zhvp2_e on the halo are not needed in bdy_vol2d 506 506 IF( ln_bdy .AND. ln_vol ) CALL bdy_vol2d( kt, jn, ua_e, va_e, zhup2_e, zhvp2_e ) 507 ! 507 ! 508 508 ! ! resulting flux at mid-step (not over the full domain) 509 509 zhU(1:jpim1,1:jpj ) = e2u(1:jpim1,1:jpj ) * ua_e(1:jpim1,1:jpj ) * zhup2_e(1:jpim1,1:jpj ) ! not jpi-column … … 512 512 #if defined key_agrif 513 513 ! Set fluxes during predictor step to ensure volume conservation 514 IF( .NOT.Agrif_Root() .AND. ln_bt_fw ) THEN 515 IF((nbondi == -1).OR.(nbondi == 2)) THEN 516 DO jj = 1, jpj 517 zhU(2:nbghostcells+1,jj) = ubdy_w(1:nbghostcells,jj) * e2u(2:nbghostcells+1,jj) 518 zhV(2:nbghostcells+1,jj) = vbdy_w(1:nbghostcells,jj) * e1v(2:nbghostcells+1,jj) 519 END DO 520 ENDIF 521 IF((nbondi == 1).OR.(nbondi == 2)) THEN 522 DO jj=1,jpj 523 zhU(nlci-nbghostcells-1:nlci-2,jj) = ubdy_e(1:nbghostcells,jj) * e2u(nlci-nbghostcells-1:nlci-2,jj) 524 zhV(nlci-nbghostcells :nlci-1,jj) = vbdy_e(1:nbghostcells,jj) * e1v(nlci-nbghostcells :nlci-1,jj) 525 END DO 526 ENDIF 527 IF((nbondj == -1).OR.(nbondj == 2)) THEN 528 DO ji=1,jpi 529 zhV(ji,2:nbghostcells+1) = vbdy_s(ji,1:nbghostcells) * e1v(ji,2:nbghostcells+1) 530 zhU(ji,2:nbghostcells+1) = ubdy_s(ji,1:nbghostcells) * e2u(ji,2:nbghostcells+1) 531 END DO 532 ENDIF 533 IF((nbondj == 1).OR.(nbondj == 2)) THEN 534 DO ji=1,jpi 535 zhV(ji,nlcj-nbghostcells-1:nlcj-2) = vbdy_n(ji,1:nbghostcells) * e1v(ji,nlcj-nbghostcells-1:nlcj-2) 536 zhU(ji,nlcj-nbghostcells :nlcj-1) = ubdy_n(ji,1:nbghostcells) * e2u(ji,nlcj-nbghostcells :nlcj-1) 537 END DO 538 ENDIF 539 ENDIF 514 IF( .NOT.Agrif_Root() .AND. ln_bt_fw ) CALL agrif_dyn_ts_flux( jn, zhU, zhV ) 540 515 #endif 541 516 IF( ln_wd_il ) CALL wad_lmt_bt(zhU, zhV, sshn_e, zssh_frc, rdtbt) !!gm wad_lmt_bt use of lbc_lnk on zhU, zhV
Note: See TracChangeset
for help on using the changeset viewer.