Skip to content

Commit

Permalink
BUG: codeStream: do not reduce if timeStampMaster
Browse files Browse the repository at this point in the history
  • Loading branch information
mattijs committed Mar 11, 2014
1 parent 97056cd commit 8199b97
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
Expand Down Expand Up @@ -286,7 +286,10 @@ Foam::functionEntries::codeStream::getFunction
}

bool haveLib = lib;
reduce(haveLib, andOp<bool>());
if (!regIOobject::masterOnlyReading)
{
reduce(haveLib, andOp<bool>());
}

if (!haveLib)
{
Expand Down

0 comments on commit 8199b97

Please sign in to comment.