69void MetisGraphGather::
74 info() <<
"Metis: gather graph";
76 const Int32
io_rank = m_parallel_mng->masterIORank();
77 const Int32 nb_rank = m_nb_rank;
88 graph.nb_vertices = CheckedConvert::toInt32(
vtxdist[m_nb_rank]);
92 graph.nb_vertices = 0;
93 graph.have_vsize =
false;
94 graph.have_adjwgt =
false;
101 offset.resize(nb_rank);
102 buffer.resize(2 * nb_rank);
115 for (
int rank = 0; rank < nb_rank; ++rank) {
138 for (
int rank = 1; rank < nb_rank; ++rank) {
177 for (
int rank = 1; rank < nb_rank; ++rank) {
188 _convertVector(
graph.nb_vertices, buffer.constView(),
graph.xadj.view());
194 for (
int rank = 1; rank < nb_rank; ++rank) {
218 _convertVector(
graph.nb_vertices, buffer.constView(),
graph.vsize.view());
235 _convertVector(
graph.nb_vertices, buffer.constView(),
graph.part.view());
242 for (
auto& x : offset) {
253 _convertVector(
graph.nb_vertices *
ncon, buffer.constView(),
graph.vwgt.view());