mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Add conversion to scalar for SP
This commit is contained in:
@ -49,7 +49,10 @@ Foam::label Foam::PatchInjection<CloudType>::parcelsToInject
|
||||
if
|
||||
(
|
||||
nParcelsToInject > 0
|
||||
&& (nParcels - scalar(nParcelsToInject) > rnd.position(0.0, 1.0))
|
||||
&& (
|
||||
nParcels - scalar(nParcelsToInject)
|
||||
> rnd.position(scalar(0), scalar(1))
|
||||
)
|
||||
)
|
||||
{
|
||||
++nParcelsToInject;
|
||||
|
||||
Reference in New Issue
Block a user