decomposePar: Added -noFields option
Patch contributed by Mattijs Janssens
This commit is contained in:
@ -240,6 +240,11 @@ int main(int argc, char *argv[])
|
|||||||
"use existing geometry decomposition and convert fields only"
|
"use existing geometry decomposition and convert fields only"
|
||||||
);
|
);
|
||||||
argList::addBoolOption
|
argList::addBoolOption
|
||||||
|
(
|
||||||
|
"noFields",
|
||||||
|
"opposite of -fields; only decompose geometry"
|
||||||
|
);
|
||||||
|
argList::addBoolOption
|
||||||
(
|
(
|
||||||
"noSets",
|
"noSets",
|
||||||
"skip decomposing cellSets, faceSets, pointSets"
|
"skip decomposing cellSets, faceSets, pointSets"
|
||||||
@ -272,12 +277,29 @@ int main(int argc, char *argv[])
|
|||||||
bool copyZero = args.optionFound("copyZero");
|
bool copyZero = args.optionFound("copyZero");
|
||||||
bool copyUniform = args.optionFound("copyUniform");
|
bool copyUniform = args.optionFound("copyUniform");
|
||||||
bool decomposeFieldsOnly = args.optionFound("fields");
|
bool decomposeFieldsOnly = args.optionFound("fields");
|
||||||
|
bool decomposeGeomOnly = args.optionFound("noFields");
|
||||||
bool decomposeSets = !args.optionFound("noSets");
|
bool decomposeSets = !args.optionFound("noSets");
|
||||||
bool forceOverwrite = args.optionFound("force");
|
bool forceOverwrite = args.optionFound("force");
|
||||||
bool ifRequiredDecomposition = args.optionFound("ifRequired");
|
bool ifRequiredDecomposition = args.optionFound("ifRequired");
|
||||||
|
|
||||||
const word dictName("decomposeParDict");
|
const word dictName("decomposeParDict");
|
||||||
|
|
||||||
|
|
||||||
|
if (decomposeGeomOnly)
|
||||||
|
{
|
||||||
|
Info<< "Skipping decomposing fields"
|
||||||
|
<< nl << endl;
|
||||||
|
|
||||||
|
if (decomposeFieldsOnly || copyZero)
|
||||||
|
{
|
||||||
|
FatalErrorInFunction
|
||||||
|
<< "Cannot combine geometry-only decomposition (-noFields)"
|
||||||
|
<< " with field decomposition (-noFields or -copyZero)"
|
||||||
|
<< exit(FatalError);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// Set time from database
|
// Set time from database
|
||||||
#include "createTime.H"
|
#include "createTime.H"
|
||||||
|
|
||||||
@ -561,7 +583,7 @@ int main(int argc, char *argv[])
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else if (!decomposeGeomOnly)
|
||||||
{
|
{
|
||||||
// Decompose the field files
|
// Decompose the field files
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user