ENH: hostCollated: naming without ranges if running on single rank

This commit is contained in:
mattijs
2023-11-09 16:00:53 +00:00
committed by Andrew Heather
parent 31825dd981
commit 5be652d03c

View File

@ -573,6 +573,10 @@ Foam::word Foam::fileOperations::collatedFileOperation::processorsDir
break;
}
}
// Add range if not all processors
if (maxProc-minProc+1 != nProcs_)
{
procDir +=
+ "_"
+ Foam::name(minProc)
@ -580,6 +584,7 @@ Foam::word Foam::fileOperations::collatedFileOperation::processorsDir
+ Foam::name(maxProc);
}
}
}
return procDir;
}