mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-12-28 03:37:59 +00:00
ENH: glboal file handling: initial commit
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.
This commit is contained in:
@ -372,7 +372,7 @@ void createDummyFvMeshFiles(const polyMesh& mesh, const word& regionName)
|
||||
|
||||
Info<< "Testing:" << io.objectPath() << endl;
|
||||
|
||||
if (!io.headerOk())
|
||||
if (!io.typeHeaderOk<IOdictionary>(true))
|
||||
{
|
||||
Info<< "Writing dummy " << regionName/io.name() << endl;
|
||||
dictionary dummyDict;
|
||||
@ -398,7 +398,7 @@ void createDummyFvMeshFiles(const polyMesh& mesh, const word& regionName)
|
||||
false
|
||||
);
|
||||
|
||||
if (!io.headerOk())
|
||||
if (!io.typeHeaderOk<IOdictionary>(true))
|
||||
{
|
||||
Info<< "Writing dummy " << regionName/io.name() << endl;
|
||||
dictionary dummyDict;
|
||||
@ -2673,7 +2673,7 @@ int main(int argc, char *argv[])
|
||||
mesh,
|
||||
IOobject::MUST_READ
|
||||
);
|
||||
if (io.headerOk())
|
||||
if (io.typeHeaderOk<pointIOField>(true))
|
||||
{
|
||||
// Read patchFaceCentres and patchEdgeCentres
|
||||
Info<< "Reading patch face,edge centres : "
|
||||
|
||||
Reference in New Issue
Block a user