| 190 | |
| 191 | |
| 192 | void Foam::reduce |
| 193 | ( |
| 194 | scalar& Value, |
| 195 | const sumOp<scalar>& bop, |
| 196 | const int tag, |
| 197 | const label communicator |
| 198 | ) |
| 199 | { |
| 200 | if (UPstream::warnComm != -1 && communicator != UPstream::warnComm) |
| 201 | { |
| 202 | Pout<< "** reducing:" << Value << " with comm:" << communicator |
| 203 | << " warnComm:" << UPstream::warnComm |
| 204 | << endl; |
| 205 | error::printStack(Pout); |
| 206 | } |
| 207 | allReduce(Value, 1, MPI_SCALAR, MPI_SUM, bop, tag, communicator); |
| 208 | } |
| 209 | |
| 210 | |
| 211 | void Foam::reduce |