mit-crpg / PINSPEC

A Monte Carlo code for simple spectral calculations in nuclear reactor applications.
9 stars 3 forks source link

Reproducibility #70

Open bforget opened 10 years ago

bforget commented 10 years ago

Initialize random number generator such that results are reproducible. This will make teaching and grading easier.

wbinventor commented 10 years ago

This has turned out to be trickier than expected. The rand() routine in stdlib isnn't threadsafe, and seems to do some funny stuff under the hood. Although C++ includes a nice API for random number generation, it requires a C++11 compliant compiler, which isn't available on MIT CRPG clusters. I plan to substitute in my own threadsafe LCG class instead in the next few days.

wbinventor commented 10 years ago

So this has turned out not to be as easy as expected. I think I've reached a quota on how much PINSPEC I can deal with and need to refocus on my class and research for a bit. So as long as it's not absolutely necessary right now, I'm going to put this on my back burner for a while (or Matt or Jon can take a look at it...) On Mar 4, 2014 11:30 AM, "bforget" notifications@github.com wrote:

Initialize random number generator such that results are reproducible. This will make teaching and grading easier.

Reply to this email directly or view it on GitHubhttps://github.com/mit-crpg/PINSPEC/issues/70 .