-
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
[BUGFIX] Fix particle selection for corner cases of morton index values #2575
Merged
Merged
Changes from all commits
Commits
Show all changes
47 commits
Select commit
Hold shift + click to select a range
c3ae3e0
First sketch of a particle selection tester
matthewturk 0299776
Add in the smoothing length calculations
matthewturk 073fbf9
Fix particle selection for sub-regions
matthewturk f3dd249
Had the logic for is_refined backwards
matthewturk 7a99703
Updating tests to use particle selection comparison
matthewturk df4cf91
Update yt/geometry/particle_oct_container.pyx
matthewturk 878e018
Update yt/geometry/particle_oct_container.pyx
matthewturk cc93f19
Update yt/geometry/particle_oct_container.pyx
matthewturk a8ef879
Updating from comments
matthewturk d22947e
Refine tests a bit
matthewturk 934a4eb
Add tests for wrapping on right
matthewturk 402afa0
Rework periodic smoothing length calculations
matthewturk 2e39ef1
Rework periodic smoothing length calculations
matthewturk 0b68faf
We need bounds[i][1] + 1 for inclusive loops
matthewturk a5642b6
Merge branch 'fix_select_mi1mi2' of github.com:matthewturk/yt into fi…
matthewturk 6f6dadc
Merge branch 'test_particle_selections' into fix_select_mi1mi2
matthewturk b20c3ed
remove unused import
matthewturk 8cdf546
First, not-quite-working, pass at refined stuff.
matthewturk af135de
Temporary commit, still not working
matthewturk 0062a98
Merge branch 'fix_select_mi1mi2' of github.com:matthewturk/yt into fi…
matthewturk e626e25
another pass
matthewturk b1c0d74
try to short circuit, and fix cython bugs
matthewturk bc7121c
Use expanded morton for faster BIGMAX selection
matthewturk 300fc4a
Give up on hiding the C++ in EWAH
matthewturk 2164393
Intermediate commit on way to working
matthewturk e89bd59
Keep a semi-running tally of bool array collections
matthewturk 09aacb9
Switch to using BoolArray
matthewturk c82a015
Switch to word adding for refined EWAH.
matthewturk 5c30b9a
Fixing a flake8 error
matthewturk a66be30
remove unused unordered_set import
matthewturk 017768b
Fix testing calls; not working yet.
matthewturk d99d87f
Missed a logic check
matthewturk c5da911
Use bounded_morton_split_dds in coarse indexing
matthewturk ac32bb0
Fencepost error
matthewturk e8ce92b
Check for None in append()
matthewturk 588b50e
Changing to uint32_t for Clang
matthewturk 6488e10
Try to be more careful with uint/int distinctions.
matthewturk 26a4ed4
Explicitly cast to uword
matthewturk e29599d
Update EWAH to 88b25a3345b82353ccd97a7de6064e6c179a7cc2
matthewturk 9e1f34e
This fixes a compilation error
jzuhone bd1fb35
Make this platform-dependent
jzuhone 25304b3
Update order-of-include and C++11 for particle_oct_container.pyx
matthewturk 1384a35
Merge branch 'yt-4.0' into fix_select_mi1mi2
matthewturk e5847d8
Update to Bionic as per Kacper's suggestion
matthewturk 3baa1bc
Merge branch 'fix_select_mi1mi2' of github.com:matthewturk/yt into fi…
matthewturk c85827e
Fix a handful of lint and style issues
matthewturk 59290f0
Updating to new answer-store rev
matthewturk File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
language: python | ||
dist: xenial | ||
dist: bionic | ||
cache: | ||
pip: true | ||
directories: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
I must have missed the reason for switching dists in travis. What was that for?
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.
Ups, this slipped through and caused a regression: older GCC (<6) need explicit C++11 flags in the build system, otherwise they will fail to build: #2892
It's not clear to me why this is not set though, because
setup.py
setsextra_compile_args=["-std=c++11"])
... 🤔 Does it need to be added to furtherExtension
s that include the same header?