extra check on face vertices

This commit is contained in:
mattijs
2009-06-16 12:02:40 +01:00
parent bde1e5b2e1
commit 72d8456951

View File

@ -383,6 +383,35 @@ void Foam::polyTopoChange::checkFace
<< " own:" << own << " nei:" << nei << " own:" << own << " nei:" << nei
<< " patchI:" << patchI << abort(FatalError); << " patchI:" << patchI << abort(FatalError);
} }
if (faceI >= 0 && faceI < faces_.size() && faceRemoved(faceI))
{
FatalErrorIn
(
"polyTopoChange::checkFace(const face&, const label"
", const label, const label, const label)"
) << "Face already marked for removal"
<< nl
<< "f:" << f
<< " faceI(-1 if added face):" << faceI
<< " own:" << own << " nei:" << nei
<< " patchI:" << patchI << abort(FatalError);
}
forAll(f, fp)
{
if (f[fp] < points_.size() && pointRemoved(f[fp]))
{
FatalErrorIn
(
"polyTopoChange::checkFace(const face&, const label"
", const label, const label, const label)"
) << "Face uses removed vertices"
<< nl
<< "f:" << f
<< " faceI(-1 if added face):" << faceI
<< " own:" << own << " nei:" << nei
<< " patchI:" << patchI << abort(FatalError);
}
}
} }