mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: IOobject headerClassName now initialised to empty value
- was previously populated with "IOobject" (the typeName) but then cannot easily detect if the object was actually read. Also clear the headerClassName on a failed read BUG: parallel inconsistency in regIOobject::readHeaderOk - headerOk() checked with master, but possible parallel operations within it
This commit is contained in:
@ -272,18 +272,18 @@ void evaluate
|
||||
);
|
||||
io.typeHeaderOk<IOobject>(false);
|
||||
|
||||
oldFieldType = io.headerClassName();
|
||||
|
||||
if (oldFieldType == IOobject::typeName)
|
||||
if (!io.hasHeaderClass() || io.isHeaderClass<IOobject>())
|
||||
{
|
||||
FatalErrorInFunction
|
||||
<< "Field " << fieldName << "(type: " << oldFieldType
|
||||
<< ") seems to be missing. Use 'create'" << nl
|
||||
<< "Field '" << fieldName
|
||||
<< "' seems to be missing. Use 'create'" << nl
|
||||
<< exit(FatalError);
|
||||
}
|
||||
|
||||
oldFieldType = io.headerClassName();
|
||||
|
||||
Info<< "Modify field: " << fieldName
|
||||
<< " (type " << oldFieldType << ')';
|
||||
<< " (type: " << oldFieldType << ')';
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user