Skip to content

align fcompare behavior with particle_compare when metadata differ#4724

Merged
WeiqunZhang merged 1 commit intoAMReX-Codes:developmentfrom
BenWibking:no-crash-fcompare
Oct 22, 2025
Merged

align fcompare behavior with particle_compare when metadata differ#4724
WeiqunZhang merged 1 commit intoAMReX-Codes:developmentfrom
BenWibking:no-crash-fcompare

Conversation

@BenWibking
Copy link
Copy Markdown
Contributor

@BenWibking BenWibking commented Oct 22, 2025

Summary

fcompare crashes when boxes differ. This is confusing when interpreting the output, since it does not indicate an actual crash. In contrast, particle_compare prints an error message and returns EXIT_FAILURE when metadata differ. This PR aligns fcompare with the behavior of particle_compare.

Also fixes a copy-paste bug in the domain coverage check in fcompare.

Additional background

Checklist

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

@BenWibking BenWibking requested a review from zingale October 22, 2025 16:16
@WeiqunZhang WeiqunZhang merged commit 51c4695 into AMReX-Codes:development Oct 22, 2025
73 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.

3 participants