Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix offset in recv buffer of single precision particle communication #3896

Merged
merged 1 commit into from
Apr 17, 2024

Conversation

WeiqunZhang
Copy link
Member

A similar bug was fixed in #3758 for the particle send buffer. But we did not notice the issue in the receive buffer at the time. The offset for the ith buffer might be aligned for the ith buffer's communication data type, not the previous buffer.

The reason the bug only appears for large single precision runs is because for double precision the particle size is aligned with the size of unsigned long long used in communication, whereas for single precision this is not the case.

A similar bug was fixed in AMReX-Codes#3758 for the particle send buffer. But we did
not notice the issue in the receive buffer at the time. The offset for the
`i`th buffer might be aligned for the `i`th buffer's communication data
type, not the previous buffer.
@atmyers atmyers merged commit 96f6d66 into AMReX-Codes:development Apr 17, 2024
69 checks passed
@WeiqunZhang WeiqunZhang deleted the fix_recv_buf branch April 17, 2024 04:54
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.

2 participants