Commit d2578e7b authored by Franjo's avatar Franjo
Browse files

Fixed crashes in edgeExtractor

parent 9c385673
......@@ -1776,7 +1776,7 @@ bool edgeExtractor::checkFacePatchesTopology()
}
}
//- eavluate the new situation and ensure that no oscillation occur
//- evaluate the new situation and ensure that no oscillation occur
reduce(nCorrected, sumOp<label>());
if( nCorrected )
{
......@@ -1806,7 +1806,8 @@ bool edgeExtractor::checkFacePatchesTopology()
facePatch_.transfer(newBoundaryPatches);
}
} while( nCorrected != 0 && (nIter++ < 30) );
} while( nCorrected != 0 && (nIter++ < 3) );
return changed;
}
......
......@@ -256,7 +256,7 @@ void edgeExtractor::faceEvaluator::neiPatchesOverEdges
neiPatches[feI] = fPatches[nei];
}
else if( edgeFaces.sizeOfRow(beI) == 1 )
else if( Pstream::parRun() && (edgeFaces.sizeOfRow(beI) == 1) )
{
neiPatches[feI] = otherFacePatch[beI];
}
......@@ -422,8 +422,8 @@ label edgeExtractor::faceEvaluator::bestPatchAfterModification
forAll(neiFaces, eI)
{
const label origPatchI = extractor_.facePatch_[neiFaces[eI]];
const label newPatchI = (*newBoundaryPatchesPtr_)[neiFaces[eI]];
const label origPatchI = oldNeiPatches[eI];
const label newPatchI = newNeiPatches[eI];
if( neiFaces[eI] > bfI )
{
......
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