From 0a65620cb899aa2b2bfa6de3c4c315b2ef09a8ee Mon Sep 17 00:00:00 2001 From: graham Date: Tue, 12 Jan 2010 15:21:30 +0000 Subject: [PATCH] Removing commented out owner and neighbour determination from createFacesOwnerNeighbourAndPatches. This commit is available for reference in future. --- .../conformalVoronoiMeshCalcDualMesh.C | 109 ------------------ 1 file changed, 109 deletions(-) diff --git a/src/mesh/conformalVoronoiMesh/conformalVoronoiMesh/conformalVoronoiMeshCalcDualMesh.C b/src/mesh/conformalVoronoiMesh/conformalVoronoiMesh/conformalVoronoiMeshCalcDualMesh.C index ae11b0ce39..e63d40582b 100644 --- a/src/mesh/conformalVoronoiMesh/conformalVoronoiMesh/conformalVoronoiMeshCalcDualMesh.C +++ b/src/mesh/conformalVoronoiMesh/conformalVoronoiMesh/conformalVoronoiMeshCalcDualMesh.C @@ -1407,115 +1407,6 @@ void Foam::conformalVoronoiMesh::createFacesOwnerNeighbourAndPatches dualFaceI++; } - - // --> OLD, FOR REFERENCE - // label dualCellIndexA = vA->index(); - - // if (!vA->internalOrBoundaryPoint()) - // { - // dualCellIndexA = -1; - // } - - // label dualCellIndexB = vB->index(); - - // if (!vB->internalOrBoundaryPoint()) - // { - // dualCellIndexB = -1; - // } - - // label own = -1; - // label nei = -1; - - // if (dualCellIndexA == -1 && dualCellIndexB == -1) - // { - // FatalErrorIn - // ( - // "void Foam::conformalVoronoiMesh::" - // "createFacesOwnerNeighbourAndPatches" - // "(" - // "faceList& faces," - // "labelList& owner," - // "labelList& neighbour," - // "wordList& patchNames," - // "labelList& patchSizes," - // "labelList& patchStarts," - // "bool includeEmptyPatches" - // ") const" - // ) - // << "Attempting to create a face joining " - // << "two unindexed dual cells " - // << exit(FatalError); - // } - // else if (dualCellIndexA == -1 || dualCellIndexB == -1) - // { - // // boundary face, find which is the owner - - // if (dualCellIndexA == -1) - // { - // own = dualCellIndexB; - - // // reverse face order to correctly orientate normal - // reverse(newDualFace); - // } - // else - // { - // own = dualCellIndexA; - // } - - // // Find which patch this face is on by finding the - // // intersection with the surface of the Delaunay edge - // // generating the face and identify the region of the - // // intersection. - - // point ptA = topoint(vA->point()); - - // point ptB = topoint(vB->point()); - - // label patchIndex = geometryToConformTo_.findPatch(ptA, ptB); - - // if (patchIndex == -1) - // { - // patchIndex = patchNames.size() - 1; - - // // WarningIn("Foam::conformalVoronoiMesh::calcDualMesh") - // // << "Dual face found between Dv pair " << nl - // // << " " << ptA << nl - // // << " " << ptB << nl - // // << " that is not on a surface patch. Adding to " - // // << patchNames[patchIndex] - // // << endl; - // } - - // patchFaces[patchIndex].append(newDualFace); - // patchOwners[patchIndex].append(own); - // } - // else - // { - // // internal face, find the lower cell to be the owner - - // if (dualCellIndexB > dualCellIndexA) - // { - // own = dualCellIndexA; - // nei = dualCellIndexB; - // } - // else - // { - // own = dualCellIndexB; - // nei = dualCellIndexA; - - // // reverse face order to correctly orientate normal - // reverse(newDualFace); - // } - - // faces[dualFaceI] = newDualFace; - - // owner[dualFaceI] = own; - - // neighbour[dualFaceI] = nei; - - // dualFaceI++; - // } - // <-- OLD, FOR REFERENCE } } }