Bad detection of hMETIS.

This commit is contained in:
Jean-Paul Chaput 2010-12-30 19:01:03 +00:00
parent 1b6b13cf28
commit 3390c400dd
1 changed files with 6 additions and 1 deletions

View File

@ -154,6 +154,11 @@ namespace Mauka {
void GraphicMaukaEngine::doQuadriPart () void GraphicMaukaEngine::doQuadriPart ()
{ {
if ( not MetisEngine::isHMetisCapable() ) {
cerr << Warning("Mauka has not been compiled againts hMETIS.\n"
" Quadri-partition step is disabled, simulated annealing may be *very* long." ) << endl;
return;
}
Cell* cell = getCell (); Cell* cell = getCell ();
emit cellPreModificated (); emit cellPreModificated ();
@ -210,7 +215,7 @@ namespace Mauka {
void GraphicMaukaEngine::place () void GraphicMaukaEngine::place ()
{ {
if ( not MetisEngine::isHMetisCapable() ) doQuadriPart (); if ( MetisEngine::isHMetisCapable() ) doQuadriPart ();
else { else {
cerr << Warning("Mauka has not been compiled againts hMETIS.\n" cerr << Warning("Mauka has not been compiled againts hMETIS.\n"
" Quadri-partition step is disabled, simulated annealing may be *very* long." ) << endl; " Quadri-partition step is disabled, simulated annealing may be *very* long." ) << endl;