CONFIG: disable reporting of ensight type checks (unless in debug)

- avoids flooding the log file with warnings when reading in data
  sets that were not generated with OpenFOAM utilities
This commit is contained in:
Mark Olesen
2023-02-15 14:02:25 +01:00
parent cc6ba5c1a0
commit d8c6b6b811

View File

@ -82,7 +82,7 @@ Foam::tmp<Foam::Field<Type>> Foam::ensightSurfaceReader::readField
} }
// Check that data type is as expected // Check that data type is as expected
// (assumes OpenFOAM generated the data set) // (assuming OpenFOAM generated the data set)
string primitiveType; string primitiveType;
is.read(primitiveType); is.read(primitiveType);
@ -90,7 +90,8 @@ Foam::tmp<Foam::Field<Type>> Foam::ensightSurfaceReader::readField
if if
( (
primitiveType != ensightPTraits<Type>::typeName debug
&& primitiveType != ensightPTraits<Type>::typeName
&& primitiveType != pTraits<Type>::typeName && primitiveType != pTraits<Type>::typeName
) )
{ {