diff --git a/Cantera/src/BasisOptimize.cpp b/Cantera/src/BasisOptimize.cpp index 5a365ee57..78d3b3341 100644 --- a/Cantera/src/BasisOptimize.cpp +++ b/Cantera/src/BasisOptimize.cpp @@ -539,8 +539,10 @@ static int amax(double *x, int j, int n) { for (k = i + 1; k < n; ++k) { if (c[k + i * idem] != 0.0) goto FOUND_PIVOT; } +#ifdef DEBUG_HKM sprintf(sbuf,"vcs_mlequ ERROR: Encountered a zero column: %d\n", i); writelog(sbuf); +#endif return 1; FOUND_PIVOT: ; for (j = 0; j < n; ++j) c[i + j * idem] += c[k + j * idem]; diff --git a/Cantera/src/misc.cpp b/Cantera/src/misc.cpp index 513f24ee4..239cdddf1 100755 --- a/Cantera/src/misc.cpp +++ b/Cantera/src/misc.cpp @@ -799,7 +799,7 @@ namespace Cantera { // Add an entry to the log file. // @ingroup HTML_logs - void Cantera::addLogEntry(std::string msg) { + void addLogEntry(std::string msg) { if (s_app->loglevel > 0 && s_app->current) s_app->current->addChild("li",msg); }