-
Notifications
You must be signed in to change notification settings - Fork 145
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
ran_unif Mersenne twister test: Resolution to Issue #499 #549
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.
Hi Charlotte,
The public ran_twist routine to return the integer value has the correct code. The comments need updating to match what the routine returns (integer).
The new program test_ran_unif is not being compiled. You can check this with
./quickbuild.sh test_rand_unif
...
ERROR: unknown program test_rand_unif
the CCE 15 compiler on Derecho should fail your test ./test_rand_unif
The test_ran_unif
is calling the new routine, and pass/failing. It has a bunch of legacy code from test_random
which we don't really want to commit. I'll add some notes on what you can pull out shortly.
Cheers,
Helen
Co-authored-by: Helen Kershaw <[email protected]>
Legacy code that should be removed Co-authored-by: Helen Kershaw <[email protected]>
Legacy code that should be removed Co-authored-by: Helen Kershaw <[email protected]>
Legacy code that should be removed Co-authored-by: Helen Kershaw <[email protected]>
@c-merchant looks good Charlotte! Cheers, |
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.
Approved!
@hkershaw-brown you missed these two commits off this pull request |
Description:
Created ran_twist function that preserves the integer from ran_unif Mersenne twister PRNG.
Created test_ran_unif that runs ran_twist with a known seed, compare the integers produced against a reference solution for the Mersenne Twister.
Fixes issue
fixes #499
Types of changes
Documentation changes needed?
Tests
Please describe any tests you ran to verify your changes.
I ran ./quickbuild.sh and ./runall.sh in ~/DART/developer_tests/random_seq/work
Checklist for merging
Checklist for release
Testing Datasets