-
Notifications
You must be signed in to change notification settings - Fork 279
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
BUG: skip out-of-bounds particles in ngp deposition #4604
Conversation
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 good! If it's -1 it won't error out because we aren't disallowing wraparound, so it will not error but won't give the right answer. If we disabled wraparound but not boundscheck it should show up.
I'm confused. If we're not disallowing wraparounds, why is it erroring now ? Is "wraparound" only for negative indices ? |
That was my understanding. |
I see. Then how about we disallow it and add the corresponding checks while we're at it ? |
Sure, go for it.
…On Thu, Jul 27, 2023 at 6:49 AM Clément Robert ***@***.***> wrote:
I see. Then how about we disallow it and add the corresponding checks while we're at it ?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
there you go |
PR Summary
close #4603
I'm not 100% sure this is the right fix (in particular, I'm not sure if a similar check for i < 0 and j < 0 would be useful), though it does fix the issue and I'm not seeing any performance regression with my very unscientific benchmark.