Merge branch 'master' of ssh://noisy/home/noisy3/OpenFOAM/OpenFOAM-dev

This commit is contained in:
Henry
2011-07-06 12:41:31 +01:00

View File

@ -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)))
{