diff --git a/src/meshTools/mappedPatches/mappedPatchBase/mappedPatchBase.C b/src/meshTools/mappedPatches/mappedPatchBase/mappedPatchBase.C index bfc1a1095a..762f0fb4f0 100644 --- a/src/meshTools/mappedPatches/mappedPatchBase/mappedPatchBase.C +++ b/src/meshTools/mappedPatches/mappedPatchBase/mappedPatchBase.C @@ -64,7 +64,7 @@ Foam::tmp Foam::mappedPatchBase::patchLocalPoints() const void Foam::mappedPatchBase::calcMapping() const { - if (mapPtr_.valid()) + if (treeMapPtr_.valid()) { FatalErrorInFunction << "Mapping already calculated" << exit(FatalError); @@ -96,12 +96,8 @@ void Foam::mappedPatchBase::calcMapping() const true ); - // Build the mapping... - // - // This octree based solution is deprecated. The "matching" patch-to-patch - // method is equivalent, less code, and should be more efficiently - // parallelised. - if (!patchToPatchIsUsed_) + // Build the mapping + if (usingTree_) { const globalIndex patchGlobalIndex(patch_.size()); @@ -242,7 +238,7 @@ void Foam::mappedPatchBase::calcMapping() const // Construct distribution schedule List> compactMap; - mapPtr_.reset + treeMapPtr_.reset ( new distributionMap ( @@ -255,23 +251,22 @@ void Foam::mappedPatchBase::calcMapping() const const labelList oldSampleIndices(move(sampleIndices)); // Construct input mapping for data to be distributed - nbrPatchFaceIndices_ = labelList(mapPtr_->constructSize(), -1); - UIndirectList