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

Method rank

cpp/dolfinx/common/MPI.cpp:64–70  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

62MPI_Comm dolfinx::MPI::Comm::comm() const noexcept { return _comm; }
63//-----------------------------------------------------------------------------
64int dolfinx::MPI::rank(const MPI_Comm comm)
65{
66 int rank;
67 int err = MPI_Comm_rank(comm, &rank);
68 dolfinx::MPI::check_error(comm, err);
69 return rank;
70}
71//-----------------------------------------------------------------------------
72int dolfinx::MPI::size(const MPI_Comm comm)
73{

Callers

nothing calls this directly

Calls 1

check_errorFunction · 0.50

Tested by

no test coverage detected