Skip to content

Commit

Permalink
Correct the "if" statement.
Browse files Browse the repository at this point in the history
  • Loading branch information
kshedstrom committed Oct 24, 2023
1 parent 5a0b838 commit 8814190
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/MOM.F90
Original file line number Diff line number Diff line change
Expand Up @@ -1626,10 +1626,11 @@ subroutine step_MOM_thermo(CS, G, GV, US, u, v, h, tv, fluxes, dtdia, &
if (CS%split) &
call remap_dyn_split_RK2_aux_vars(G, GV, CS%dyn_split_RK2_CSp, h, h_new, CS%ALE_CSp, CS%OBC, dzRegrid)

if (associated(CS%OBC)) &
if (associated(CS%OBC)) then
call pass_var(h, G%Domain, halo=max(2,CS%cont_stencil), complete=.false.)
call pass_var(h_new, G%Domain, halo=max(2,CS%cont_stencil), complete=.true.)
call remap_OBC_fields(G, GV, h, h_new, CS%OBC, PCM_cell=PCM_cell)
endif

call remap_vertvisc_aux_vars(G, GV, CS%visc, h, h_new, CS%ALE_CSp, CS%OBC)
if (associated(CS%visc%Kv_shear)) &
Expand Down

0 comments on commit 8814190

Please sign in to comment.