Skip to content

Commit

Permalink
Fixed uninitialized logical in MOM_continuity_PPM
Browse files Browse the repository at this point in the history
- A logical used to indicate use of Flather OBCs was not always
  set. Detected in coupled-mode executables for some reasons.
- No answer changes.
  • Loading branch information
adcroft committed Jul 1, 2016
1 parent d4fe7f7 commit cff9f0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/MOM_continuity_PPM.F90
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ subroutine zonal_mass_flux(u, h_in, uh, dt, G, GV, CS, LB, uhbt, OBC, &

do_aux = (present(uhbt_aux) .and. present(u_cor_aux))
use_visc_rem = present(visc_rem_u)
apply_OBC_u = .false. ; set_BT_cont = .false.
apply_OBC_u = .false. ; set_BT_cont = .false. ; apply_OBC_flather = .false.
if (present(BT_cont)) set_BT_cont = (associated(BT_cont))
if (present(OBC)) then ; if (associated(OBC)) then
apply_OBC_u = OBC%apply_OBC_u
Expand Down Expand Up @@ -1147,7 +1147,7 @@ subroutine meridional_mass_flux(v, h_in, vh, dt, G, GV, CS, LB, vhbt, OBC, &

do_aux = (present(vhbt_aux) .and. present(v_cor_aux))
use_visc_rem = present(visc_rem_v)
apply_OBC_v = .false. ; set_BT_cont = .false.
apply_OBC_v = .false. ; set_BT_cont = .false. ; apply_OBC_flather = .false.
if (present(BT_cont)) set_BT_cont = (associated(BT_cont))
if (present(OBC)) then ; if (associated(OBC)) then ; if (OBC%this_pe) then
apply_OBC_v = OBC%apply_OBC_v
Expand Down

0 comments on commit cff9f0e

Please sign in to comment.