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
\\ / O peration |
\\ / A nd | Copyright (C) 2004-2010 OpenCFD Ltd.
\\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -148,6 +148,11 @@ int main(int argc, char *argv[])
# include "setRootCase.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 regionPrefix = "";
word regionName = polyMesh::defaultRegion;

View File

@ -305,7 +305,8 @@ int main(int argc, char *argv[])
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;

View File

@ -405,6 +405,12 @@ int main(int argc, char *argv[])
# include "setRootCase.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);
const bool isTestRun = args.optionFound("test");