35 void Foam::enrichedPatch::calcMasterPointFaces()
const
37 if (masterPointFacesPtr_)
40 <<
"Master point face addressing already calculated."
52 Map<DynamicList<label>> mpf(2*
meshPoints().size());
57 forAll(masterPatch_, facei)
59 const face& curFace = ef[facei + slavePatch_.size()];
61 for (
const label pointi : curFace)
64 mpf(pointi).append(facei);
71 forAll(slavePointFaceHits_, pointi)
75 slavePointPointHits_[pointi] < 0
76 && slavePointEdgeHits_[pointi] < 0
77 && slavePointFaceHits_[pointi].hit()
81 const label mergedPointi =
pointMergeMap()[slaveMeshPoints[pointi]];
84 mpf(mergedPointi).append(slavePointFaceHits_[pointi].hitObject());
90 masterPointFacesPtr_.reset(
new Map<labelList>(2*mpf.size()));
91 auto& masterPointFaceMap = *masterPointFacesPtr_;
95 masterPointFaceMap(mpfIter.key()).transfer(mpfIter.val());
105 if (!masterPointFacesPtr_)
107 calcMasterPointFaces();
110 return *masterPointFacesPtr_;