ENH: foamUpgradeCyclics,foamFormatConvert etc: switch off master-only reading.

This commit is contained in:
mattijs
2011-04-05 15:55:27 +01:00
parent 459889e304
commit 5497bcb22d
3 changed files with 14 additions and 2 deletions

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2004-2010 OpenCFD Ltd. \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -148,6 +148,11 @@ int main(int argc, char *argv[])
# include "setRootCase.H" # include "setRootCase.H"
# include "createTime.H" # include "createTime.H"
// Make sure we do not use the master-only reading since we read
// fields (different per processor) as dictionaries.
regIOobject::fileModificationChecking = regIOobject::timeStamp;
fileName meshDir = polyMesh::meshSubDir; fileName meshDir = polyMesh::meshSubDir;
fileName regionPrefix = ""; fileName regionPrefix = "";
word regionName = polyMesh::defaultRegion; word regionName = polyMesh::defaultRegion;

View File

@ -305,7 +305,8 @@ int main(int argc, char *argv[])
instance = args.options()["instance"]; instance = args.options()["instance"];
} }
// Make sure we do not use the master-only reading. // Make sure we do not use the master-only reading since we read
// fields (different per processor) as dictionaries.
regIOobject::fileModificationChecking = regIOobject::timeStamp; regIOobject::fileModificationChecking = regIOobject::timeStamp;

View File

@ -405,6 +405,12 @@ int main(int argc, char *argv[])
# include "setRootCase.H" # include "setRootCase.H"
# include "createTime.H" # include "createTime.H"
// Make sure we do not use the master-only reading since we read
// fields (different per processor) as dictionaries.
regIOobject::fileModificationChecking = regIOobject::timeStamp;
instantList timeDirs = timeSelector::select0(runTime, args); instantList timeDirs = timeSelector::select0(runTime, args);
const bool isTestRun = args.optionFound("test"); const bool isTestRun = args.optionFound("test");