misc fixes

This commit is contained in:
Dave Goodwin
2007-01-27 16:54:48 +00:00
parent 78d40b62fe
commit 9479564e1d
2 changed files with 3 additions and 1 deletions

View File

@@ -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];

View File

@@ -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);
}