1
0
mirror of https://github.com/paboyle/Grid.git synced 2025-08-01 04:07:07 +01:00

added Serial RNG - code compiles but not tested!

This commit is contained in:
ferben
2019-11-07 13:45:38 +00:00
parent 5c23abe507
commit a8f3a111a5
4 changed files with 29 additions and 1 deletions

View File

@@ -84,6 +84,16 @@ GridParallelRNG * Environment::get4dRng(void)
return rng4d_.get();
}
GridSerialRNG * Environment::getSerialRng(void)
{
if (rngSerial_ == nullptr)
{
rngSerial_.reset(new GridSerialRNG());
}
return rngSerial_.get();
}
// general memory management ///////////////////////////////////////////////////
void Environment::addObject(const std::string name, const int moduleAddress)
{