ENH: use returnReduceAnd(), returnReduceOr() functions
This commit is contained in:
@ -6,7 +6,7 @@
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||
Copyright (C) 2016-2021 OpenCFD Ltd.
|
||||
Copyright (C) 2016-2022 OpenCFD Ltd.
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
This file is part of OpenFOAM.
|
||||
@ -332,7 +332,8 @@ void Foam::codedBase::createLibrary
|
||||
<< " after waiting: have masterSize:" << masterSize
|
||||
<< " and localSize:" << mySize << endl;
|
||||
}
|
||||
reduce(create, orOp<bool>());
|
||||
|
||||
Pstream::reduceOr(create); // MPI barrier
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user