ran_unif Mersenne twister test: Resolution to Issue #499#549
ran_unif Mersenne twister test: Resolution to Issue #499#549hkershaw-brown merged 12 commits intoNCAR:mainfrom
Conversation
hkershaw-brown
left a comment
There was a problem hiding this comment.
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, |
|
@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