Extra checks: face with no cell
This commit is contained in:
parent
76db42b9ac
commit
7d5a3f22f3
1 changed files with 9 additions and 0 deletions
|
@ -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())
|
||||
|
|
Reference in a new issue