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:34:43 +01:00
parent aa2c977924
commit e4c2052291

View File

@ -226,8 +226,6 @@ void readPoints
(
is
) << "Points not in order starting at point " << pointi
//<< " at line " << is.lineNumber()
//<< abort(FatalError);
<< endl;
}
@ -478,6 +476,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;
}
}