Okay... need a compromise.

This commit is contained in:
Ye Luo 2019-10-25 10:57:55 -05:00
parent ef832e5b5c
commit 21fbb16739
1 changed files with 7 additions and 0 deletions

View File

@ -362,6 +362,13 @@ void QMCDriverNew::createRngsStepContexts()
Rng.resize(num_crowds_);
if (RandomNumberControl::Children.size() == 0)
{
app_warning() << " Initializing global RandomNumberControl! "
<< "This message should not be seen in production code but only in unit tests." << std::endl;
RandomNumberControl::make_seeds();
}
for(int i = 0; i < num_crowds_; ++i)
{
Rng[i].reset(RandomNumberControl::Children[i]);