mirror of https://github.com/QMCPACK/qmcpack.git
Okay... need a compromise.
This commit is contained in:
parent
ef832e5b5c
commit
21fbb16739
|
@ -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]);
|
||||
|
|
Loading…
Reference in New Issue