| 176 | |
| 177 | |
| 178 | void comm_sync() { |
| 179 | #if COMPILE_MPI |
| 180 | |
| 181 | // gracefully handle when not distributed, needed by e.g. pre-MPI-setup validation |
| 182 | if (!comm_isInit()) |
| 183 | return; |
| 184 | |
| 185 | MPI_Barrier(MPI_COMM_WORLD); |
| 186 | #endif |
| 187 | } |
no test coverage detected