| 247 | |
| 248 | |
| 249 | void Foam::sumReduce |
| 250 | ( |
| 251 | scalar& Value, |
| 252 | label& Count, |
| 253 | const int tag, |
| 254 | const label communicator |
| 255 | ) |
| 256 | { |
| 257 | if (UPstream::warnComm != -1 && communicator != UPstream::warnComm) |
| 258 | { |
| 259 | Pout<< "** reducing:" << Value << " with comm:" << communicator |
| 260 | << " warnComm:" << UPstream::warnComm |
| 261 | << endl; |
| 262 | error::printStack(Pout); |
| 263 | } |
| 264 | vector2D twoScalars(Value, scalar(Count)); |
| 265 | reduce(twoScalars, sumOp<vector2D>(), tag, communicator); |
| 266 | |
| 267 | Value = twoScalars.x(); |
| 268 | Count = twoScalars.y(); |
| 269 | } |
| 270 | |
| 271 | |
| 272 | void Foam::reduce |
nothing calls this directly
no test coverage detected