-
Notifications
You must be signed in to change notification settings - Fork 2
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
try less patchghost copies #91
base: master
Are you sure you want to change the base?
Conversation
WalkthroughWalkthroughThe changes focus on streamlining the Changes
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
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.
Review Status
Actionable comments generated: 0
Configuration used: .coderabbit.yaml
Files selected for processing (1)
- src/amr/solvers/solver_ppc.hpp (3 hunks)
Additional comments: 1
src/amr/solvers/solver_ppc.hpp (1)
- 206-206: The use of
std::move
here is efficient for transferring ownership ofdomainParticles
without copying. However, ensure thattmpDomain
is no longer needed after this operation, as the moved-from state of its elements will be indeterminate.
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.
Review Status
Actionable comments generated: 0
Configuration used: .coderabbit.yaml
Files selected for processing (1)
- src/core/numerics/ion_updater/ion_updater.hpp (2 hunks)
Additional comments: 3
src/core/numerics/ion_updater/ion_updater.hpp (3)
- 175-178: The
pushAndAccumulateGhosts
function now takesoutputArray
as a parameter, which is a significant change. Ensure that all calls to this function have been updated accordingly. This change could improve clarity and control over the array being modified, potentially enhancing maintainability and performance by avoiding unnecessary internal replacements.Verification successful
The calls to
pushAndAccumulateGhosts
withinion_updater.hpp
have been updated to match the new function signature, as evidenced by the search results. This suggests that the modifications to the function and its usage are consistent with the intended changes.* 176-178: The simplification of using `range` instead of separate `inRange` and `outRange` variables could improve readability and reduce complexity. However, ensure that this change does not introduce any unintended side effects, especially in scenarios where the distinction between `inRange` and `outRange` was critical for the logic. * 200-200: The direct replacement of the array internally for `pop.levelGhostParticles()` is a notable change. This approach could streamline the handling of ghost particles, potentially improving performance. However, it's crucial to ensure that this change does not lead to any unintended consequences, such as loss of data or incorrect particle handling.Scripts Executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Search for calls to `pushAndAccumulateGhosts` to ensure they've been updated. rg --type cpp "pushAndAccumulateGhosts"Length of output: 423
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.
Review Status
Actionable comments generated: 0
Configuration used: .coderabbit.yaml
Files selected for processing (1)
- src/core/numerics/ion_updater/ion_updater.hpp (2 hunks)
Files skipped from review as they are similar to previous changes (1)
- src/core/numerics/ion_updater/ion_updater.hpp
Summary by CodeRabbit
IonUpdater
class for improved performance.