mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
error check for zero cells
This commit is contained in:
@ -657,6 +657,16 @@ void readCells
|
|||||||
<< " tet :" << nTet << endl
|
<< " tet :" << nTet << endl
|
||||||
<< endl;
|
<< endl;
|
||||||
|
|
||||||
|
if (cells.size() == 0)
|
||||||
|
{
|
||||||
|
FatalErrorIn("readCells(..)")
|
||||||
|
<< "No cells read from file " << inFile.name() << nl
|
||||||
|
<< "Does your file specify any 3D elements (hex=" << MSHHEX
|
||||||
|
<< ", prism=" << MSHPRISM << ", pyramid=" << MSHPYR
|
||||||
|
<< ", tet=" << MSHTET << ")?" << nl
|
||||||
|
<< "Perhaps you have not exported the 3D elements?"
|
||||||
|
<< exit(FatalError);
|
||||||
|
}
|
||||||
|
|
||||||
Info<< "CellZones:" << nl
|
Info<< "CellZones:" << nl
|
||||||
<< "Zone\tSize" << endl;
|
<< "Zone\tSize" << endl;
|
||||||
|
|||||||
Reference in New Issue
Block a user