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

Function test_comm_graphs

cpp/test/graph.cpp:51–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49}
50
51void test_comm_graphs()
52{
53 const int mpi_size = dolfinx::MPI::size(MPI_COMM_WORLD);
54 constexpr int size_local = 100;
55 const common::IndexMap idx_map
56 = create_index_map(MPI_COMM_WORLD, size_local, (mpi_size - 1) * 3);
57
58 auto g = graph::comm_graph(idx_map);
59 if (dolfinx::MPI::rank(MPI_COMM_WORLD) == 0)
60 graph::comm_to_json(g);
61}
62} // namespace
63
64TEST_CASE("AdjacencyList create")

Callers 1

graph.cppFile · 0.85

Calls 3

comm_graphFunction · 0.85
comm_to_jsonFunction · 0.85
create_index_mapFunction · 0.70

Tested by

no test coverage detected