| 600 | } |
| 601 | |
| 602 | void |
| 603 | ReduceBoolAnd (bool& r) |
| 604 | { |
| 605 | int src = r; // src is either 0 or 1. |
| 606 | |
| 607 | detail::DoAllReduce<int>(&src,MPI_SUM,1); |
| 608 | |
| 609 | r = (src == ParallelDescriptor::NProcs()) ? true : false; |
| 610 | } |
| 611 | |
| 612 | void |
| 613 | ReduceBoolAnd (bool& r, int cpu) |
no test coverage detected