Moved file path handling to regIOobject and made it type specific so now every object can have its own rules. Examples: - faceZones are now processor local (and don't search up anymore) - timeStampMaster is now no longer hardcoded inside IOdictionary (e.g. uniformDimensionedFields support it as well) - the distributedTriSurfaceMesh is properly processor-local; no need for fileModificationChecking manipulation.
22 lines
498 B
C
22 lines
498 B
C
// ignore special fields or fields that we don't handle
|
|
//
|
|
bool variableGood = true;
|
|
for (label n1=0; n1<Times.size() && variableGood; ++n1)
|
|
{
|
|
// ignore _0 fields
|
|
if (fieldName.size() > 2 && fieldName(fieldName.size() - 2, 2) == "_0")
|
|
{
|
|
variableGood = false;
|
|
}
|
|
else
|
|
{
|
|
variableGood = IOobject
|
|
(
|
|
fieldName,
|
|
Times[n1].name(),
|
|
mesh,
|
|
IOobject::NO_READ
|
|
).typeHeaderOk<volScalarField>(false);
|
|
}
|
|
}
|