add ReduceToPlaneMF2Patchy#4958
Merged
WeiqunZhang merged 6 commits intoAMReX-Codes:developmentfrom Feb 25, 2026
Merged
Conversation
5 tasks
Contributor
Author
|
Failures appear to be unrelated. |
github-merge-queue bot
pushed a commit
to quokka-astro/quokka
that referenced
this pull request
Feb 21, 2026
### Description Fixes an MPI bug in the plane projection machinery. It probably only affected very large-scale simulations. ### Related issues Depends on AMReX-Codes/amrex#4958. ### Checklist _Before this pull request can be reviewed, all of these tasks should be completed. Denote completed tasks with an `x` inside the square brackets `[ ]` in the Markdown source below:_ - [x] I have added a description (see above). - [x] I have added a link to any related issues (if applicable; see above). - [x] I have read the [Contributing Guide](https://github.com/quokka-astro/quokka/blob/development/CONTRIBUTING.md). - [ ] I have added tests for any new physics that this PR adds to the code. - [ ] *(For quokka-astro org members)* I have manually triggered the GPU tests with the magic comment `/azp run`. --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Member
|
The CI failures are due to this. llvm/llvm-project#182462 |
Member
The Windows CI failure might be real. |
Contributor
Author
|
@WeiqunZhang Windows CI passes now. |
01b1240 to
375511d
Compare
Member
|
Looks like the Windows issue is still there. And GCC/Clang has the same issue |
Contributor
Author
|
I will just remove OpenMP from this test. |
Member
|
You really like structured binding. 😆 |
WeiqunZhang
reviewed
Feb 24, 2026
Contributor
Author
|
@WeiqunZhang Let me know how this version looks. |
WeiqunZhang
approved these changes
Feb 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
ReduceToPlaneMF2Patchyto reduce a sparse 3D MultiFab to a sparse 2D MultiFab without constructing a full-domain 2D BaseFab. This should produce the same result asReduceToPlaneup to machine precision, but with less memory usage.Additional background
ReduceToPlanedoes not work in practice if the 2D plane is larger than INT_MAX (unless the MPI implementation is fully compliant with the MPI-4 large count specification). Even in this case, the memory usage may be excessive.Checklist
The proposed changes: