diff --git a/src/OpenFOAM/db/dictionary/functionEntries/codeStream/codeStream.C b/src/OpenFOAM/db/dictionary/functionEntries/codeStream/codeStream.C index ebbb6efb81..34dd4e80d1 100644 --- a/src/OpenFOAM/db/dictionary/functionEntries/codeStream/codeStream.C +++ b/src/OpenFOAM/db/dictionary/functionEntries/codeStream/codeStream.C @@ -197,22 +197,25 @@ Foam::functionEntries::codeStream::getFunction } } - // 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) - { + //- We don't know whether this code was from IOdictionary + // (possibly read on master only) or from e.g. Field so cannot + // decide here. + //// 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()); - } + //} if (isA(topDict(parentDict))) {