ENH: use sorted order for patch IDs in fieldFunctionObjects (#2819)

- replaces labelHashSet with a sorted labelList to ensure that patches
  will be processed in consistent order in parallel
This commit is contained in:
Mark Olesen
2023-07-06 13:05:34 +02:00
parent 5397c9ac04
commit ed314b2740
32 changed files with 279 additions and 302 deletions

View File

@ -86,6 +86,7 @@ VoFPatchTransfer::VoFPatchTransfer
wordRes patchNames;
if (coeffDict_.readIfPresent("patches", patchNames))
{
// Can also use pbm.indices(), but no warnings...
patchIDs_ = pbm.patchSet(patchNames).sortedToc();
Info<< " applying to " << patchIDs_.size() << " patches:" << nl;