Commit 773c9de3 authored by Spencer Sherwin's avatar Spencer Sherwin
Browse files

Merge branch 'fix/no-weight-partitioning' of /opt/gitlab/repositories/nektar

parents 402a1459 047aa406
......@@ -636,6 +636,10 @@ namespace Nektar
vwgt[pGraph[*vertit].id * m_numFields + i] = pGraph[*vertit].weight[i];
}
}
else
{
vwgt[pGraph[*vertit].id] = 1;
}
}
// Call Metis and partition graph
......@@ -650,7 +654,7 @@ namespace Nektar
if(m_comm->GetColumnComm()->GetRank() == 0)
{
// Attempt partitioning using METIS.
int ncon = 2*m_numFields;
int ncon = m_weightingRequired ? 2*m_numFields : 1;
Metis::PartGraphVKway(nGraphVerts, ncon, xadj, adjncy, vwgt, vsize, npart, vol, part);
// Check METIS produced a valid partition and fix if not.
CheckPartitions(part);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment