BUG: add a warning in star4ToFoam for .cel files containing only shell entries (#1425)

This commit is contained in:
Kutalmis Bercin
2019-09-04 14:59:57 +01:00
committed by Andrew Heather
parent 603badd196
commit d724e303ac
2 changed files with 9 additions and 0 deletions

View File

@ -341,6 +341,12 @@ void Foam::fileFormats::STARCDMeshReader::readCells(const fileName& inputName)
// construct cellFaces_ and possibly cellShapes_
if (nCells <= 0)
{
if (nShells != 0)
{
WarningInFunction
<< inputName << "consists of only shell entries (typeId=4)."
<< endl;
}
FatalErrorInFunction
<< "no cells in file " << inputName
<< abort(FatalError);

View File

@ -36,6 +36,9 @@ Description
- trimmed and degenerate cells are saved as polyhedral.
- the boundaries corresponds to cells and their faces.
Notes
- Shell entries are read, yet ignored.
SourceFiles
STARCDMeshReader.C