mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: reconstructPar: always reconstruct cellSets, faceSets, pointSets
This commit is contained in:
@ -104,8 +104,8 @@ int main(int argc, char *argv[])
|
|||||||
);
|
);
|
||||||
argList::addBoolOption
|
argList::addBoolOption
|
||||||
(
|
(
|
||||||
"sets",
|
"noSets",
|
||||||
"reconstruct cellSets, faceSets, pointSets"
|
"skip reconstructing cellSets, faceSets, pointSets"
|
||||||
);
|
);
|
||||||
argList::addBoolOption
|
argList::addBoolOption
|
||||||
(
|
(
|
||||||
@ -122,11 +122,24 @@ int main(int argc, char *argv[])
|
|||||||
args.optionLookup("fields")() >> selectedFields;
|
args.optionLookup("fields")() >> selectedFields;
|
||||||
}
|
}
|
||||||
|
|
||||||
const bool reconstructSets = args.optionFound("sets");
|
|
||||||
|
|
||||||
|
|
||||||
const bool noLagrangian = args.optionFound("noLagrangian");
|
const bool noLagrangian = args.optionFound("noLagrangian");
|
||||||
|
|
||||||
|
if (noLagrangian)
|
||||||
|
{
|
||||||
|
Info<< "Skipping reconstructing lagrangian positions and fields"
|
||||||
|
<< nl << endl;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
const bool noReconstructSets = args.optionFound("noSets");
|
||||||
|
|
||||||
|
if (noReconstructSets)
|
||||||
|
{
|
||||||
|
Info<< "Skipping reconstructing cellSets, faceSets and pointSets"
|
||||||
|
<< nl << endl;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
HashSet<word> selectedLagrangianFields;
|
HashSet<word> selectedLagrangianFields;
|
||||||
if (args.optionFound("lagrangianFields"))
|
if (args.optionFound("lagrangianFields"))
|
||||||
{
|
{
|
||||||
@ -682,7 +695,7 @@ int main(int argc, char *argv[])
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (reconstructSets)
|
if (!noReconstructSets)
|
||||||
{
|
{
|
||||||
// Scan to find all sets
|
// Scan to find all sets
|
||||||
HashTable<label> cSetNames;
|
HashTable<label> cSetNames;
|
||||||
|
|||||||
Reference in New Issue
Block a user