Skip to content
Snippets Groups Projects
Commit 6e4b93b6 authored by mattijs's avatar mattijs
Browse files

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

parent 09ae0fae
No related merge requests found
......@@ -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;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment