polyMesh: Stopped re-seeding of RNG on each cell-tree update

This resolves bug report https://bugs.openfoam.org/view.php?id=2772
This commit is contained in:
Will Bainbridge 2017-11-29 11:34:54 +00:00
parent a268af9720
commit e00301939f

View file

@ -878,7 +878,7 @@ Foam::polyMesh::cellTree() const
{
treeBoundBox overallBb(points());
Random rndGen(261782);
static Random rndGen(261782);
overallBb = overallBb.extend(rndGen, 1e-4);
overallBb.min() -= point(ROOTVSMALL, ROOTVSMALL, ROOTVSMALL);