Skip to content

Fix single precision overflow issues with EB - #218

Merged
asalmgren merged 1 commit into
AMReX-Fluids:developmentfrom
atmyers:single_precision_sentinel_workaround
Sep 14, 2026
Merged

asalmgren merged 1 commit into
AMReX-Fluids:developmentfrom
atmyers:single_precision_sentinel_workaround

Conversation

@atmyers

@atmyers atmyers commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

These values need to be set to 0.0 in covered regions. Otherwise, large sentinel values like 1e30 will be multiplied together, creating floating point issues that lead to MLMG returning NaNs. A similar fix exists in the MAC Projection in MFiX-Exa.

This can be reproduced, for example, by running the channel_cylinder-x problem in single precision.

@asalmgren
asalmgren enabled auto-merge (squash) September 14, 2026 20:58
@asalmgren
asalmgren merged commit 149dead into AMReX-Fluids:development Sep 14, 2026
12 checks passed
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.

2 participants