BUG: mapNearest: fix re-start

This commit is contained in:
mattijs
2014-08-14 11:15:16 +01:00
committed by Andrew Heather
parent fc2343ae73
commit 8cc4cab322

View File

@ -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();