mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: foamFormatConvert: convert constant (i.e. polyMesh) by default
This commit is contained in:
@ -143,11 +143,30 @@ bool writeZones(const word& name, const fileName& meshDir, Time& runTime)
|
|||||||
|
|
||||||
int main(int argc, char *argv[])
|
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 "addRegionOption.H"
|
||||||
# include "setRootCase.H"
|
# include "setRootCase.H"
|
||||||
|
|
||||||
|
// Hack to enable noConstant
|
||||||
|
if (!args.optionFound("noConstant"))
|
||||||
|
{
|
||||||
|
const_cast<HashTable<string>&>(args.options()).insert
|
||||||
|
(
|
||||||
|
"constant",
|
||||||
|
""
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
# include "createTime.H"
|
# include "createTime.H"
|
||||||
|
|
||||||
|
|
||||||
// Make sure we do not use the master-only reading since we read
|
// Make sure we do not use the master-only reading since we read
|
||||||
// fields (different per processor) as dictionaries.
|
// fields (different per processor) as dictionaries.
|
||||||
regIOobject::fileModificationChecking = regIOobject::timeStamp;
|
regIOobject::fileModificationChecking = regIOobject::timeStamp;
|
||||||
|
|||||||
Reference in New Issue
Block a user