Repository navigation
Update pyAMReX for AMReX PR #6225 - #641
Merged
Merged
Conversation
Member
|
Thanks, yes forward update is totally fine as well and just bumping the AMReX version. But will merge as is for now 👍 |
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are reported for the Array4 buffer-conversion compatibility update.
No open issues 🎉
What changed in this PR
Updates pyAMReX’s Array4 buffer conversion to support the component-stride layout introduced by AMReX PR #6225 while retaining compatibility with older AMReX versions.
Changes:
- Detects
stride.nat compile time, falling back tostride.a[2]for older versions. - Uses
Longfor the buffer-shape conversion when calculating component stride and clarifies the storage-layout comments.
| File | Description |
|---|---|
src/Base/Array4.H |
Handles both component-stride layouts during buffer conversion. |
Review effort: Balanced
Member
Author
|
Thanks! |
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.
After AMReX PR #6225, the component stride lives at
stride.ninstead ofstride.a[2].With this change, pyamrex works with either the old or new AMReX, let me know if you want to require the new version instead.