MCPcopy Create free account
hub / github.com/FEniCS/dolfinx / check_error

Method check_error

cpp/dolfinx/common/MPI.cpp:80–92  ·  view source on GitHub ↗

-----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

78}
79//-----------------------------------------------------------------------------
80void 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//-----------------------------------------------------------------------------
94std::vector<int>
95dolfinx::MPI::compute_graph_edges_pcx(MPI_Comm comm, std::span<const int> edges)

Callers

nothing calls this directly

Calls 1

dataMethod · 0.80

Tested by

no test coverage detected