Skip to content

Geometry: Better assertion message#5224

Merged
WeiqunZhang merged 1 commit intoAMReX-Codes:developmentfrom
WeiqunZhang:geom_assert
Mar 23, 2026
Merged

Geometry: Better assertion message#5224
WeiqunZhang merged 1 commit intoAMReX-Codes:developmentfrom
WeiqunZhang:geom_assert

Conversation

@WeiqunZhang
Copy link
Copy Markdown
Member

No description provided.

@WeiqunZhang WeiqunZhang requested review from atmyers and ax3l March 23, 2026 20:41
@WeiqunZhang WeiqunZhang merged commit 9d8951b into AMReX-Codes:development Mar 23, 2026
74 checks passed
@WeiqunZhang WeiqunZhang deleted the geom_assert branch March 23, 2026 22:03
Comment on lines +534 to +536
ss << std::setprecision(std::numeric_limits<double>::max_digits10)
<< prob_domain << " " << domain << " sizeof Real: "
<< sizeof(Real) << " sizeof ParticleReal: " << sizeof(ParticleReal);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Due to the many string conversions here, I would have probably wrapped this part in if(!valid_domain) :D

Copy link
Copy Markdown
Member Author

@WeiqunZhang WeiqunZhang Mar 23, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We reused it for assertion later in the iteration loop.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants