MCPcopy Create free account
hub / github.com/KaHIP/KaHIP / assert_node_range_array_ok

Method assert_node_range_array_ok

parallel/parallel_src/lib/dspac/dspac.cpp:381–390  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

379}
380
381bool dspac::assert_node_range_array_ok(const std::vector<NodeID> &node_range_array) {
382 int size, rank;
383 MPI_Comm_size(m_comm, &size);
384 MPI_Comm_rank(m_comm, &rank);
385 assert(node_range_array.size() == size + 1);
386 assert(node_range_array[0] == 0);
387 assert(node_range_array[size] == m_input_graph.number_of_global_nodes());
388 assert(m_input_graph.number_of_local_nodes() == node_range_array[rank + 1] - node_range_array[rank]);
389 return true;
390}
391
392std::vector<PartitionID> dspac::project_partition(parallel_graph_access &split_graph, const std::vector<EdgeID> &permutation) {
393 std::vector<PartitionID> edge_partition(m_input_graph.number_of_local_edges());

Callers

nothing calls this directly

Calls 3

number_of_local_nodesMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected