ENH: foamFormatConvert: convert constant (i.e. polyMesh) by default

This commit is contained in:
mattijs 2011-05-25 21:37:36 +01:00
parent 09ae0fae93
commit 6e4b93b6cc

View File

@ -143,11 +143,30 @@ bool writeZones(const word& name, const fileName& meshDir, Time& runTime)
int main(int argc, char *argv[])
{
timeSelector::addOptions();
timeSelector::addOptions(false, false);
argList::addBoolOption
(
"noConstant",
"exclude the 'constant/' dir in the times list"
);
# include "addRegionOption.H"
# include "setRootCase.H"
// Hack to enable noConstant
if (!args.optionFound("noConstant"))
{
const_cast<HashTable<string>&>(args.options()).insert
(
"constant",
""
);
}
# 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;