Permalink
Browse files

BUG: cloudSet.C: force early construction of tetBasePtIs to avoid dem…

…and-driven comms
  • Loading branch information...
1 parent 1c1205d commit bda3d30f81799abadf5fa4bfea550d6ecd0c41a6 mattijs committed Feb 7, 2012
Showing with 8 additions and 1 deletion.
  1. +6 −1 src/sampling/sampledSet/cloud/cloudSet.C
  2. +2 −0 src/sampling/sampledSet/patchCloud/patchCloudSet.C
@@ -51,9 +51,14 @@ void Foam::cloudSet::calcSamples
DynamicList<scalar>& samplingCurveDist
) const
{
+ // Force calculation of face-diagonals
+ (void)mesh().tetBasePtIs();
+
+ const meshSearch& queryMesh = searchEngine();
+
forAll(sampleCoords_, sampleI)
{
- label cellI = searchEngine().findCell(sampleCoords_[sampleI]);
+ label cellI = queryMesh.findCell(sampleCoords_[sampleI]);
if (cellI != -1)
{
@@ -115,6 +115,8 @@ void Foam::patchCloudSet::calcSamples
3.0 // duplicity
);
+ // Force calculation of face-diagonal decomposition
+ (void)mesh().tetBasePtIs();
// All the info for nearest. Construct to miss

0 comments on commit bda3d30

Please sign in to comment.