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:
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user