Skip to content

Make RealBox::contains use a closed interval#5445

Open
atmyers wants to merge 5 commits into
AMReX-Codes:developmentfrom
atmyers:realbox_contains
Open

Make RealBox::contains use a closed interval#5445
atmyers wants to merge 5 commits into
AMReX-Codes:developmentfrom
atmyers:realbox_contains

Conversation

@atmyers
Copy link
Copy Markdown
Member

@atmyers atmyers commented May 12, 2026

Closes #5308

The proposed changes:

  • fix a bug or incorrect behavior in AMReX
  • add new capabilities to AMReX
  • changes answers in the test suite to more than roundoff level
  • are likely to significantly affect the results of downstream AMReX users
  • include documentation in the code and/or rst files, if appropriate

@atmyers atmyers requested a review from WeiqunZhang May 12, 2026 16:49

void test_contains_closed_interval ()
{
constexpr Real delta = Real(1.e-12);
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.

I think this test will fail with single precision.

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.

RealBox::contains excludes boundary points

2 participants