Skip to content

Commit

Permalink
Fix logic for reading parameter in MOM_tracer_advect.F90
Browse files Browse the repository at this point in the history
We had random behavior in the doc files because the logical `CS%useHuynh`
was not set when using the PLM scheme.
  • Loading branch information
adcroft committed Jul 31, 2024
1 parent c3349ab commit 78492d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tracer/MOM_tracer_advect.F90
Original file line number Diff line number Diff line change
Expand Up @@ -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. " &
Expand Down

0 comments on commit 78492d6

Please sign in to comment.