Skip to content

Make the ccproj guard in ApplyProjection a real condition. - #205

Open
WeiqunZhang wants to merge 1 commit into
AMReX-Fluids:developmentfrom
WeiqunZhang:fix-ccproj-vacuous-assert
Open

Make the ccproj guard in ApplyProjection a real condition.#205
WeiqunZhang wants to merge 1 commit into
AMReX-Fluids:developmentfrom
WeiqunZhang:fix-ccproj-vacuous-assert

Conversation

@WeiqunZhang

Copy link
Copy Markdown
Member

AMREX_ALWAYS_ASSERT was given a string literal, which is always true, so the guard never fired and a use_cc_proj run reached ApplyNodalProjection and wrote through the undefined p_nd.

Fixes #180.

AMREX_ALWAYS_ASSERT was given a string literal, which is always true, so the guard never fired and a use_cc_proj run reached ApplyNodalProjection and wrote through the undefined p_nd.

Fixes AMReX-Fluids#180.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Vacuous string-literal assert lets use_cc_proj initial pressure proj write undefined p_nd

1 participant