Commit e9a61ad3 authored by graham's avatar graham
Browse files

ENH: Adding not-found patches to nearest instead of default.

parent a0a6dfb1
......@@ -1995,10 +1995,16 @@ void Foam::conformalVoronoiMesh::createFacesOwnerNeighbourAndPatches
if (patchIndex == -1)
{
// Did not find a surface patch between
// between Dv pair, adding face to default
// patch
// between Dv pair, finding nearest patch
patchIndex = defaultPatchIndex;
Pout<< "Did not find a surface patch between "
<< "for face, finding nearest patch to"
<< 0.5*(ptA + ptB) << endl;
patchIndex = geometryToConformTo_.findPatch
(
0.5*(ptA + ptB)
);
}
patchFaces[patchIndex].append(newDualFace);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment