ENH: add regular expressions for reconstructPar, mapFieldsPar -fields option

- improved flexibility

- reconstruction of Lagrangian positions/fields now handled as a class
  for better modularity
This commit is contained in:
Mark Olesen
2018-11-28 08:36:17 +01:00
parent b81420e524
commit 41a03f3790
19 changed files with 862 additions and 613 deletions

View File

@ -48,7 +48,7 @@ void mapConsistentMesh
const word& AMIMapMethod,
const word& procMapMethod,
const bool subtract,
const wordHashSet& selectedFields,
const wordRes& selectedFields,
const bool noLagrangian
)
{
@ -95,7 +95,7 @@ void mapSubMesh
const word& AMIMapMethod,
const word& procMapMethod,
const bool subtract,
const wordHashSet& selectedFields,
const wordRes& selectedFields,
const bool noLagrangian
)
{
@ -195,9 +195,9 @@ int main(int argc, char *argv[])
argList::addOption
(
"fields",
"list",
"Specify a list of fields to be mapped. Eg, '(U T p)' - "
"regular expressions not currently supported"
"wordRes",
"Specify single or multiple fields to reconstruct (all by default)."
" Eg, 'T' or '(p T U \"alpha.*\")'"
);
argList::addBoolOption
(
@ -288,8 +288,8 @@ int main(int argc, char *argv[])
Info<< "Subtracting mapped source field from target" << endl;
}
wordHashSet selectedFields;
args.readIfPresent("fields", selectedFields);
wordRes selectedFields;
args.readListIfPresent<wordRe>("fields", selectedFields);
const bool noLagrangian = args.found("noLagrangian");