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

@ -121,7 +121,7 @@ template<class Type, class CombineOp>
void MapVolFields
(
const IOobjectList& objects,
const wordHashSet& selectedFields,
const wordRes& selectedFields,
const meshToMesh& interp,
const CombineOp& cop
)
@ -135,8 +135,8 @@ void MapVolFields
const wordList fieldNames =
(
selectedFields.empty()
? objects.sortedNames(fieldType::typeName)
: objects.sortedNames(fieldType::typeName, selectedFields)
? objects.sortedNames<fieldType>()
: objects.sortedNames<fieldType>(selectedFields)
);
for (const word& fieldName : fieldNames)