Skip to content
Snippets Groups Projects
Commit 8cc4cab3 authored by mattijs's avatar mattijs Committed by Andrew Heather
Browse files

BUG: mapNearest: fix re-start

parent fc2343ae
Branches
Tags
No related merge requests found
......@@ -97,11 +97,13 @@ void Foam::mapNearestAMI<SourcePatch, TargetPatch>::setNextNearestFaces
}
}
forAll(mapFlag, srcFaceI)
forAll(mapFlag, faceI)
{
if (!mapFlag[srcFaceI])
if (mapFlag[faceI])
{
tgtFaceI = this->findTargetFace(srcFaceI);
srcFaceI = faceI;
tgtFaceI = this->findTargetFace(faceI);
if (tgtFaceI == -1)
{
const vectorField& srcCf = this->srcPatch_.faceCentres();
......
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