Skip to content
Snippets Groups Projects
Commit b50f2943 authored by mattijs's avatar mattijs Committed by Andrew Heather
Browse files

BUG: codeStream: do not reduce if timeStampMaster

parent dd0efd15
No related merge requests found
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
...@@ -286,7 +286,10 @@ Foam::functionEntries::codeStream::getFunction ...@@ -286,7 +286,10 @@ Foam::functionEntries::codeStream::getFunction
} }
bool haveLib = lib; bool haveLib = lib;
reduce(haveLib, andOp<bool>()); if (!regIOobject::masterOnlyReading)
{
reduce(haveLib, andOp<bool>());
}
if (!haveLib) if (!haveLib)
{ {
......
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