-----------------------------------------------------------------------------
| 78 | } |
| 79 | //----------------------------------------------------------------------------- |
| 80 | void dolfinx::MPI::check_error(MPI_Comm comm, int code) |
| 81 | { |
| 82 | if (code != MPI_SUCCESS) |
| 83 | { |
| 84 | int len = MPI_MAX_ERROR_STRING; |
| 85 | std::string error_string(MPI_MAX_ERROR_STRING, ' '); |
| 86 | MPI_Error_string(code, error_string.data(), &len); |
| 87 | error_string.resize(len); |
| 88 | std::cerr << error_string << '\n'; |
| 89 | MPI_Abort(comm, code); |
| 90 | std::abort(); |
| 91 | } |
| 92 | } |
| 93 | //----------------------------------------------------------------------------- |
| 94 | std::vector<int> |
| 95 | dolfinx::MPI::compute_graph_edges_pcx(MPI_Comm comm, std::span<const int> edges) |