mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: uniformSet: construct cloud on all processors
This commit is contained in:
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -226,13 +226,16 @@ void Foam::uniformSet::calcSamples
|
|||||||
<< exit(FatalError);
|
<< exit(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Dummy cloud to force cyclicAMI and min-tet decomposition construction
|
||||||
|
// even on those processors where there are no points
|
||||||
|
passiveParticleCloud dummyCloud(mesh());
|
||||||
|
|
||||||
|
|
||||||
const vector offset = (end_ - start_)/(nPoints_ - 1);
|
const vector offset = (end_ - start_)/(nPoints_ - 1);
|
||||||
const vector normOffset = offset/mag(offset);
|
const vector normOffset = offset/mag(offset);
|
||||||
const vector smallVec = tol*offset;
|
const vector smallVec = tol*offset;
|
||||||
const scalar smallDist = mag(smallVec);
|
const scalar smallDist = mag(smallVec);
|
||||||
|
|
||||||
// Force calculation of minimum-tet decomposition.
|
|
||||||
(void) mesh().tetBasePtIs();
|
|
||||||
|
|
||||||
// Get all boundary intersections
|
// Get all boundary intersections
|
||||||
List<pointIndexHit> bHits = searchEngine().intersections
|
List<pointIndexHit> bHits = searchEngine().intersections
|
||||||
|
|||||||
Reference in New Issue
Block a user