Skip to content

Commit

Permalink
Added kahip partitioner to gui.
Browse files Browse the repository at this point in the history
  • Loading branch information
joaquinffernandez committed Aug 29, 2024
1 parent 7b480b2 commit 8c182ce
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/gui/mmohighlight.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ MmoHighlighter::MmoHighlighter(QTextDocument *parent, h_type file) : QSyntaxHigh
<< "\\bSparse\\b"
<< "\\bScotch\\b"
<< "\\bPatoh\\b"
<< "\\bKaHIP\\b"
<< "\\bManual\\b"
<< "\\bMTPL\\b"
<< "\\bMTPL_IT\\b"
Expand Down
7 changes: 5 additions & 2 deletions src/gui/runform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,8 @@ int RunDlg::getPartitionMethodIdx(QString str)
if (str.trimmed() == "HMetis") return 1;
if (str.trimmed() == "Scotch") return 2;
if (str.trimmed() == "Patoh") return 3;
if (str.trimmed() == "Manual") return 4;
if (str.trimmed() == "KaHIP") return 4;
if (str.trimmed() == "Manual") return 5;
return 0;
}

Expand All @@ -265,9 +266,11 @@ QString RunDlg::getPartitionMethodString(int idx)
case 3:
return "Patoh";
case 4:
return "KaHIP";
case 5:
return "Manual";
}
return "Metis";
return "Scotch";
}

int RunDlg::getJacobianIdx(QString str)
Expand Down
5 changes: 5 additions & 0 deletions src/gui/ui/run.ui
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,11 @@
<string>PATOH</string>
</property>
</item>
<item>
<property name="text">
<string>KAHIP</string>
</property>
</item>
<item>
<property name="text">
<string>MANUAL</string>
Expand Down

0 comments on commit 8c182ce

Please sign in to comment.