mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-12-28 03:37:59 +00:00
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:
@ -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
|
||||
(
|
||||
|
||||
Reference in New Issue
Block a user