ENH: use broadcasting streams to distribute uniform file content

BUG: masterUncollatedFileOperation checking of file-size

- used Foam:fileSize check to decide on scheduled/nonBlocking but this
  was being done on all ranks and subsequently broadcast.
  Now avoid unnecessary filesystem access on non-master ranks.
This commit is contained in:
Mark Olesen
2022-03-09 12:48:39 +01:00
parent e9dbe60b60
commit a674c9d373
16 changed files with 309 additions and 312 deletions

View File

@ -210,7 +210,7 @@ Foam::functionEntries::codeStream::getFunction
off_t mySize = Foam::fileSize(libPath);
off_t masterSize = mySize;
Pstream::scatter(masterSize);
Pstream::broadcast(masterSize);
for
(