mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
superfluous function
This commit is contained in:
@ -628,7 +628,7 @@ void Foam::addPatchCellLayer::setRefinement
|
||||
DynamicList<label> ef;
|
||||
|
||||
// Precalculate mesh edges for pp.edges.
|
||||
labelList meshEdges(calcMeshEdges(mesh_, pp));
|
||||
const labelList meshEdges(pp.meshEdges(mesh_.edges(), mesh_.pointEdges()));
|
||||
|
||||
if (debug)
|
||||
{
|
||||
@ -1547,30 +1547,4 @@ void Foam::addPatchCellLayer::updateMesh
|
||||
}
|
||||
|
||||
|
||||
Foam::labelList Foam::addPatchCellLayer::calcMeshEdges
|
||||
(
|
||||
const primitiveMesh& mesh,
|
||||
const indirectPrimitivePatch& pp
|
||||
)
|
||||
{
|
||||
labelList meshEdges(pp.nEdges());
|
||||
|
||||
forAll(meshEdges, patchEdgeI)
|
||||
{
|
||||
const edge& e = pp.edges()[patchEdgeI];
|
||||
|
||||
label v0 = pp.meshPoints()[e[0]];
|
||||
label v1 = pp.meshPoints()[e[1]];
|
||||
meshEdges[patchEdgeI] = meshTools::findEdge
|
||||
(
|
||||
mesh.edges(),
|
||||
mesh.pointEdges()[v0],
|
||||
v0,
|
||||
v1
|
||||
);
|
||||
}
|
||||
return meshEdges;
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -354,15 +354,6 @@ public:
|
||||
const labelList& faceMap, // new to old patch faces
|
||||
const labelList& pointMap // new to old patch points
|
||||
);
|
||||
|
||||
// Helper
|
||||
|
||||
//- Per patch edge the corresponding mesh edge
|
||||
static labelList calcMeshEdges
|
||||
(
|
||||
const primitiveMesh& mesh,
|
||||
const indirectPrimitivePatch&
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user