36 void Foam::enrichedPatch::calcMasterPointFaces()
const
38 if (masterPointFacesPtr_)
41 <<
"Master point face addressing already calculated."
53 Map<DynamicList<label>> mpf(2*
meshPoints().size());
58 forAll(masterPatch_, facei)
60 const face& curFace = ef[facei + slavePatch_.size()];
62 for (
const label pointi : curFace)
65 mpf(pointi).append(facei);
72 forAll(slavePointFaceHits_, pointi)
76 slavePointPointHits_[pointi] < 0
77 && slavePointEdgeHits_[pointi] < 0
78 && slavePointFaceHits_[pointi].hit()
85 mpf(mergedPointi).append(slavePointFaceHits_[pointi].hitObject());
91 masterPointFacesPtr_ =
new Map<labelList>(2*mpf.size());
92 Map<labelList>& masterPointFaceMap = *masterPointFacesPtr_;
96 masterPointFaceMap(mpfIter.key()).transfer(mpfIter.val());
106 if (!masterPointFacesPtr_)
108 calcMasterPointFaces();
111 return *masterPointFacesPtr_;