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

Method Comm

cpp/dolfinx/common/MPI.cpp:12–22  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

10
11//-----------------------------------------------------------------------------
12dolfinx::MPI::Comm::Comm(MPI_Comm comm, bool duplicate)
13{
14 // Duplicate communicator
15 if (duplicate and comm != MPI_COMM_NULL)
16 {
17 int err = MPI_Comm_dup(comm, &_comm);
18 dolfinx::MPI::check_error(comm, err);
19 }
20 else
21 _comm = comm;
22}
23//-----------------------------------------------------------------------------
24dolfinx::MPI::Comm::Comm(const Comm& comm) noexcept
25 : dolfinx::MPI::Comm::Comm(comm._comm, true)

Callers

nothing calls this directly

Calls 1

check_errorFunction · 0.50

Tested by

no test coverage detected