COMP: make Random constructor explicit

This commit is contained in:
Mark Olesen
2019-11-21 12:01:23 +01:00
committed by Andrew Heather
parent cd366b60cc
commit cc138b0d82
2 changed files with 8 additions and 2 deletions

View File

@ -85,10 +85,16 @@ class Random
public:
// Public Static Data
//- The default seed value (name may change in the future)
static constexpr label defaultSeed = 123456;
// Constructors
//- Construct with seed value
Random(const label seedValue = 123456);
explicit Random(const label seedValue = defaultSeed);
//- Copy construct with optional reset of seed
Random(const Random& r, const bool reset = false);

View File

@ -846,7 +846,7 @@ turbulentDFSEMInletFvPatchVectorField
nCellPerEddy_(dict.getOrDefault<label>("nCellPerEddy", 5)),
patchNormal_(Zero),
v0_(Zero),
rndGen_(0, -1),
rndGen_(),
sigmax_(size(), Zero),
maxSigmaX_(Zero),
nEddy_(Zero),