Skip to content

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

Merged
WeiqunZhang merged 1 commit into
AMReX-Fluids:developmentfrom
WeiqunZhang:fix-ccproj-vacuous-assert
Aug 19, 2026
Merged

Make the ccproj guard in ApplyProjection a real condition.#205
WeiqunZhang merged 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.
@WeiqunZhang
WeiqunZhang merged commit 3c0b79b into AMReX-Fluids:development Aug 19, 2026
12 checks passed
@WeiqunZhang
WeiqunZhang deleted the fix-ccproj-vacuous-assert branch August 19, 2026 02:04
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

2 participants