-
Notifications
You must be signed in to change notification settings - Fork 596
Simplify rectangular lattice crossing and correctly handle corner checks #3703
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
Conversation
lower mesh resolution
|
@pshriwise, could you take some time to review this PR? |
Happy to. I was staring at it a bit this morning already in fact. |
paulromano
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.
Just made two updates here:
- Added another guard against direction components being zero when setting
lattice_trans - Cleaned up the model in the test
Good to go as far as I'm concerned! @pshriwise do you want to review before we merge?
Nope! The two changes you noted to account for direction components that are zero are in and it seems the tests pass with the lost particle setting removed in the model -- the only other change I was going to suggest. |
|
This is awesome; I'm delighted to see this resolved! |
Description
This PR simplify rectangular lattice crossing algorithm and add support for corner crossing.
The test case was taken from #2445 with lower resolution like #3355.
Fixes #3355 and fixes #2445.
Checklist
I have followed the style guidelines for Python source files (if applicable)I have made corresponding changes to the documentation (if applicable)