mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
COMP: make Random constructor explicit
This commit is contained in:
committed by
Andrew Heather
parent
cd366b60cc
commit
cc138b0d82
@ -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);
|
||||
|
||||
@ -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),
|
||||
|
||||
Reference in New Issue
Block a user