-
Notifications
You must be signed in to change notification settings - Fork 225
openPMD plugin: optimized restart from partial domain #5582
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
openPMD plugin: optimized restart from partial domain #5582
Conversation
132ecb3 to
3690da4
Compare
psychocoderHPC
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only reformating of the comments is required
PrometheusPi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks fine to me - but please follow @psychocoderHPC suggestions regarding moving comments
| { | ||
| continue; | ||
| } | ||
| dataPtr[remap[particleIndex]] = dataPtr[particleIndex]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks like magic to me and a find the new version much clearer.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The major change is that the previous version (unnecessarily) precomputed the target indices. Could have been made a bit clearer by:
auto previouslyComputedNewIndex = remap[particleIndex];
dataPtr[previouslyComputedNewIndex] = dataPtr[particleIndex];all requests have been fullfiled
450b8b3
into
ComputationalRadiationPhysics:dev
Follow-up to #5508, that PR used a needless precomputed intermediate buffer
remap. Not included in that PR to avoid last-minute changes/errors.