kill DEBUG constant, its not used any more

This commit is contained in:
Tiago Gomes 2012-04-30 14:50:14 +01:00
parent 7cf8c68e15
commit 9971736a45
2 changed files with 5 additions and 4 deletions

View File

@ -496,7 +496,9 @@ BpSolver::converged (void)
}
if (residual > BpOptions::accuracy) {
converged = false;
if (Constants::DEBUG == 0) break;
if (Globals::verbosity < 2) {
break;
}
}
}
if (Globals::verbosity > 1) {

View File

@ -39,6 +39,7 @@ namespace Globals {
extern bool logDomain;
// level of debug information
extern unsigned verbosity;
extern InfAlgorithms infAlgorithm;
@ -48,9 +49,7 @@ extern InfAlgorithms infAlgorithm;
namespace Constants {
// level of debug information
const unsigned DEBUG = 3;
// show message calculation for belief propagation
const bool SHOW_BP_CALCS = false;
const int NO_EVIDENCE = -1;