ENH: ideasUnvToFoam: Added test for no cells (e.g. 2D mesh)

Patch contributed by Bruno Santos
Resolves patch request https://bugs.openfoam.org/view.php?id=2691
This commit is contained in:
Henry Weller
2017-09-09 22:33:06 +01:00
committed by Andrew Heather
parent ef9c6b5abc
commit 96bdb82918

View File

@ -231,8 +231,6 @@ void readPoints
(
is
) << "Points not in order starting at point " << pointi
//<< " at line " << is.lineNumber()
//<< abort(FatalError);
<< endl;
}
@ -483,6 +481,13 @@ void readCells
Info<< "Read " << cellVerts.size() << " cells"
<< " and " << boundaryFaces.size() << " boundary faces." << endl;
if (!cellVerts.size())
{
WarningInFunction
<< "There are no cells in the mesh." << endl
<< " Note: 2D meshes are not supported."<< endl;
}
}