mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: vtkUnstructuredReader: early check for binary files
This commit is contained in:
@ -578,6 +578,12 @@ void Foam::vtkUnstructuredReader::read(ISstream& inFile)
|
||||
Info<< "dataType : " << dataType_ << endl;
|
||||
}
|
||||
|
||||
if (dataType_ == "BINARY")
|
||||
{
|
||||
FatalIOErrorIn("vtkUnstructuredReader::read(ISstream&)", inFile)
|
||||
<< "Binary reading not supported " << exit(FatalIOError);
|
||||
}
|
||||
|
||||
parseMode readMode = NOMODE;
|
||||
label wantedSize = -1;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user