ENH: codeStream: work with timeStampMaster

This commit is contained in:
mattijs
2011-07-05 17:29:30 +01:00
parent be9718ef43
commit b3558a8991

View File

@ -197,8 +197,22 @@ Foam::functionEntries::codeStream::getFunction
} }
} }
// all processes must wait for compile to finish // all processes must wait for compile to finish - except if this
reduce(create, orOp<bool>()); // 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))) if (isA<IOdictionary>(topDict(parentDict)))
{ {