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) { if (residual > BpOptions::accuracy) {
converged = false; converged = false;
if (Constants::DEBUG == 0) break; if (Globals::verbosity < 2) {
break;
}
} }
} }
if (Globals::verbosity > 1) { if (Globals::verbosity > 1) {

View File

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