mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: use sorted order for fieldSelection::selectionNames() (#2819)
- return a sorted wordList instead of a wordHashSet to ensure that fields will be processed in consistent order in parallel
This commit is contained in:
@ -157,11 +157,13 @@ bool Foam::functionObjects::limitFields::execute()
|
||||
{
|
||||
fieldSet_.updateSelection();
|
||||
|
||||
Log << type() << " " << name() << ":" << nl;
|
||||
Log << type() << ' ' << name() << ':' << nl;
|
||||
|
||||
label count = 0, total = 0;
|
||||
|
||||
label count = 0;
|
||||
for (const word& fieldName : fieldSet_.selectionNames())
|
||||
{
|
||||
++total;
|
||||
if
|
||||
(
|
||||
limitScalarField(fieldName)
|
||||
@ -177,8 +179,7 @@ bool Foam::functionObjects::limitFields::execute()
|
||||
|
||||
if (debug)
|
||||
{
|
||||
Log << " - limited " << count << '/'
|
||||
<< fieldSet_.selectionNames().size() << " fields";
|
||||
Log << " - limited " << count << '/' << total << " fields";
|
||||
}
|
||||
|
||||
Log << endl;
|
||||
|
||||
Reference in New Issue
Block a user