66 if (scalarNormalStored_)
68 scalarNormalStored_ =
false;
70 return scalarNormalValue_;
82 while (rr >= 1 || rr == 0);
84 const scalar
f =
sqrt(- 2*
log(rr)/rr);
86 scalarNormalValue_ = x1*
f;
87 scalarNormalStored_ =
true;
96 scalar value = - vGreat;
Inter-processor communication reduction functions.
dimensionedScalar log(const dimensionedScalar &ds)
scalar scalarNormal()
Advance the state and return a scalar sample from a normal.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
dimensionedScalar sqrt(const dimensionedScalar &ds)
static bool master(const label communicator=0)
Am I the master process.
scalar globalScalar01()
Advance the state and return a scalar sample from a uniform.
static void scatter(const List< commsStruct > &comms, T &Value, const int tag, const label comm)
Scatter data. Distribute without modification. Reverse of gather.
scalar scalar01()
Advance the state and return a scalar sample from a uniform.