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 a second place where particles compute the size of a buffer. #16815
Conversation
21bb4a2
to
c568ac4
Compare
@gassmoeller @blaisb FYI |
|
c568ac4
to
f63778c
Compare
Sorry I just got to properly think about the change of aligning the Tensor class. But I have a question: If |
It is clear that a standard |
Let me think about that, I have some benchmarks, but they are mostly 2D which shouldnt change, I will look for a 3D case. This should not hold up this PR, which is a clear fix. I will reference my comment in #16796, which is really the place where I should have made this comment. |
Like #16813. This fixes the remaining 5 of the 16 particle-related failures mentioned in #16796.
It turns out that we have duplicate code to compute the size of the buffer, in
class Particle
andclass ParticleAccessor
. #16813 fixes the first of these, this patch the second. This is perhaps not the best design, but it is what it is and my interest for the moment is just fixing the bug.While there, I'm also adding an assertion I found useful in debugging.