From 78492d691c75280a308efaf0df0a6ad739dd3902 Mon Sep 17 00:00:00 2001 From: Alistair Adcroft Date: Wed, 31 Jul 2024 11:16:44 -0400 Subject: [PATCH] Fix logic for reading parameter in MOM_tracer_advect.F90 We had random behavior in the doc files because the logical `CS%useHuynh` was not set when using the PLM scheme. --- src/tracer/MOM_tracer_advect.F90 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tracer/MOM_tracer_advect.F90 b/src/tracer/MOM_tracer_advect.F90 index e927f2f89d..b54c7e4538 100644 --- a/src/tracer/MOM_tracer_advect.F90 +++ b/src/tracer/MOM_tracer_advect.F90 @@ -1133,7 +1133,7 @@ subroutine tracer_advect_init(Time, G, US, param_file, diag, CS) "Unknown TRACER_ADVECTION_SCHEME = "//trim(mesg)) end select - if (CS%useHuynh) then + if (CS%usePPM .and. CS%useHuynh) then call get_param(param_file, mdl, "USE_HUYNH_STENCIL_BUG", & CS%useHuynhStencilBug, & desc="If true, use a stencil width of 2 in PPM:H3 tracer advection. " &