Extra checks: face with no cell

This commit is contained in:
Hrvoje Jasak 2018-11-08 19:30:29 +00:00
parent 76db42b9ac
commit 7d5a3f22f3

View file

@ -930,6 +930,15 @@ int main(int argc, char *argv[])
{
label curCell = owner[faceI];
if (curCell >= nCells)
{
FatalErrorIn(args.executable())
<< "Trying to create face " << faceI
<< " whose owner cell index is greater than "
<< "the number of cells: " << nCells
<< abort(FatalError);
}
if (nFacesInCell[curCell] >= cellFaces[curCell].size())
{
FatalErrorIn(args.executable())