| 99 | |
| 100 | |
| 101 | void comm_init() { |
| 102 | #if COMPILE_MPI |
| 103 | |
| 104 | // error if attempting re-initialisation |
| 105 | if (comm_isInit()) |
| 106 | error_commAlreadyInit(); |
| 107 | |
| 108 | MPI_Init(NULL, NULL); |
| 109 | |
| 110 | #endif |
| 111 | } |
| 112 | |
| 113 | |
| 114 | void comm_end() { |
no test coverage detected