From 8814190577a2b0f73d34e8de65119c3335711312 Mon Sep 17 00:00:00 2001 From: Kate Hedstrom Date: Tue, 24 Oct 2023 08:27:17 -0800 Subject: [PATCH] Correct the "if" statement. --- src/core/MOM.F90 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/MOM.F90 b/src/core/MOM.F90 index 3ed65d7530..2bef9e2369 100644 --- a/src/core/MOM.F90 +++ b/src/core/MOM.F90 @@ -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)) &