regIOobject::readStream: Changed the class name test to issue a warning rather than a fatal error
This temporary change allows cases with the old incorrect zone file headers to
run without the need to update them, the warning:
--> FOAM Warning :
From function Foam::Istream& Foam::regIOobject::readStream(const Foam::word&, bool)
in file db/regIOobject/regIOobjectRead.C at line 169
Reading ".../tutorials/incompressibleVoF/floatingObject/constant/polyMesh/cellZones" at line 14
Unexpected class name regIOobject, expected cellZoneList
while reading object cellZones
is printed rather than the case stopping with a fatal error.
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2024 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -166,11 +166,11 @@ Foam::Istream& Foam::regIOobject::readStream
|
||||
}
|
||||
else
|
||||
{
|
||||
FatalIOErrorInFunction(isPtr_())
|
||||
<< "unexpected class name " << headerClassName()
|
||||
<< " expected " << expectName << endl
|
||||
IOWarningInFunction(isPtr_())
|
||||
<< "Unexpected class name " << headerClassName()
|
||||
<< ", expected " << expectName << endl
|
||||
<< " while reading object " << name()
|
||||
<< exit(FatalIOError);
|
||||
<< endl;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user