-
Notifications
You must be signed in to change notification settings - Fork 38
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
Ionbox refactor #427
Merged
Merged
Ionbox refactor #427
Changes from 26 commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
5abd202
WIP filter tests
daviesje b7cd6a1
WIP filters 0,3,4 test as expected
daviesje 23eb13c
fix test comparison cases
daviesje 9efea6d
fix bug in mfp filter, set expected mean
daviesje 5dc7339
WIP refactor of ionbox
daviesje 9e9c171
WIP installs
daviesje 206ec93
bugfixes
daviesje a7b797e
make IC rng consistent with master, use faster version per snapshot
daviesje 2b3c4cf
don't calculate log10turn in every cell unless we need to
daviesje 08bcae9
WIP
daviesje 67ecfd0
remove partial ion rng model
daviesje 05eecd3
Merge branch 'v4-prep' into ionbox-refactor
daviesje e7968de
fix mcrit setting on minihalos
daviesje b665ff1
fix minihalos?
daviesje a1c9df5
add median scaling flag, set mfp filter to use filtered density & con…
daviesje d26be59
reduce debug logs, fix recombination dz bug
daviesje b35cadb
add tolerance sampler for Nikolic Comparison
daviesje 3c56a38
add constant sfr for compatibility
daviesje 7d7ba1b
comment cleanup
daviesje 56b425b
merge v4-prep
daviesje 6f0239e
Merge branch 'v4-prep' into ionbox-refactor
daviesje d148995
fixing tolerance sampling
daviesje 53ee836
fix merge conflict typo
daviesje b9a4b90
Merge branch 'v4-prep' into ionbox-refactor
daviesje fdce42b
fix merge typo
daviesje 083dee0
Merge branch 'ionbox-refactor' of https://github.com/21cmfast/21cmFAS…
daviesje 3af6101
move rng to separate file, no duplicate seeds
daviesje dd5d89f
add new files
daviesje fb48534
move validations to wrapper
daviesje 6326f68
no more re-allocating first ionbox, fix some bugs
daviesje 5ba0de5
fix binning and increase sampling on halo tests
daviesje d584482
fix previous nion bug, make tests for segfaults
daviesje 4e01ba6
fix sampler tests
daviesje 76d594b
rebalance halo sampler test buffer size
daviesje 862cf3f
fix ionbox fgtrm segfault
daviesje 246d89c
fix xray_source turnover bug, improve box summary printing
daviesje 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,10 @@ int ComputeInitialConditions( | |
CosmoParams *cosmo_params, InitialConditions *boxes | ||
); | ||
|
||
//TODO: these seeding functions should probably be somewhere else | ||
// Possibly make an rng.c/h | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I agree with this |
||
void seed_rng_threads(gsl_rng * rng_arr[], unsigned long long int seed); | ||
void seed_rng_threads_fast(gsl_rng * rng_arr[], unsigned long long int seed); | ||
void free_rng_threads(gsl_rng * rng_arr[]); | ||
|
||
#endif |
Oops, something went wrong.
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.
Let's add a line that just checks if any of the seeds are the same and re-samples if so.