Commit fcd1649b authored by Franjo's avatar Franjo
Browse files

Updates of edgeExtractor

parent dab7b668
......@@ -524,10 +524,11 @@ void edgeExtractor::findFaceCandidates
if( !otherFacePatchPtr )
{
Map<label> otherFacePatch;
findOtherFacePatchesParallel(otherFacePatch, &fPatches);
Map<label>* helperPtr = new Map<label>();
findOtherFacePatchesParallel(*helperPtr, facePatchPtr);
otherFacePatchPtr = &otherFacePatch;
otherFacePatchPtr = helperPtr;
}
const Map<label>& otherFacePatch = *otherFacePatchPtr;
......@@ -547,15 +548,15 @@ void edgeExtractor::findFaceCandidates
forAll(faceEdges, bfI)
{
DynList<label> allNeiPatches;
forAllRow(faceEdges, bfI, eI)
forAllRow(faceEdges, bfI, feI)
{
const label beI = faceEdges(bfI, eI);
const label beI = faceEdges(bfI, feI);
if( edgeFaces.sizeOfRow(beI) == 2 )
{
label fNei = edgeFaces(beI, 0);
if( fNei == bfI )
fNei = edgeFaces(faceEdges(bfI, eI), 1);
fNei = edgeFaces(beI, 1);
allNeiPatches.appendIfNotIn(fPatches[fNei]);
}
......
Markdown is supported
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