Skip to content
Snippets Groups Projects
Commit 5c8c4202 authored by Henry's avatar Henry
Browse files
parents 64ec1bab 9e4aecd6
Branches
Tags
No related merge requests found
......@@ -197,8 +197,22 @@ Foam::functionEntries::codeStream::getFunction
}
}
// all processes must wait for compile to finish
reduce(create, orOp<bool>());
// all processes must wait for compile to finish - except if this
// file is only read on the master
bool masterOnly =
(
regIOobject::fileModificationChecking
== regIOobject::timeStampMaster
)
|| (
regIOobject::fileModificationChecking
== regIOobject::inotifyMaster
);
if (!masterOnly)
{
reduce(create, orOp<bool>());
}
if (isA<IOdictionary>(topDict(parentDict)))
{
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment