Skip to content

Conversation

@jcurtis2
Copy link
Member

advect_w and advect_weno_w set horz_order and vert_order local variables to the scalar options rather than the momentum options, which is incorrect. This causes failed model runs under certain conditions. The u and v advection subroutines properly set these. Note: This currently persists in WRF codebase.

Additionally once this was fixed, vertical advection for scalars couldn't be turned off which horizontal could. The scalar advection code can have horizontal advection off by setting h_sca_adv_order = 0 but there didn't exist logic for vertical advection v_sca_adv_order = 0. This triggered an error message.

@jcurtis2 jcurtis2 self-assigned this Aug 14, 2025
@jcurtis2 jcurtis2 added the bug Something isn't working label Aug 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant