From c5f8c0f4b4e0b2dfd1086957774e6e6a72962742 Mon Sep 17 00:00:00 2001 From: Harry Moffat Date: Thu, 29 Jan 2009 02:07:05 +0000 Subject: [PATCH] Fixed an error in reading the lambda coeff from the database. --- Cantera/src/thermo/DebyeHuckel.cpp | 6 +++--- Cantera/src/thermo/HMWSoln_input.cpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cantera/src/thermo/DebyeHuckel.cpp b/Cantera/src/thermo/DebyeHuckel.cpp index a4ac54c98..479a7dbc7 100644 --- a/Cantera/src/thermo/DebyeHuckel.cpp +++ b/Cantera/src/thermo/DebyeHuckel.cpp @@ -1257,13 +1257,13 @@ namespace Cantera { double dens = m_waterSS->density(); double mw = m_waterSS->molecularWeight(); m_speciesSize[0] = mw / dens; -#ifdef DEBUG_HKM_NOT +#ifdef DEBUG_MODE_NOT cout << "Solvent species " << sss[k] << " has volume " << m_speciesSize[k] << endl; #endif } else if (modelString == "constant_incompressible") { m_speciesSize[k] = getFloat(*ss, "molarVolume", "toSi"); -#ifdef DEBUG_HKM_NOT +#ifdef DEBUG_MODE_NOT cout << "species " << sss[k] << " has volume " << m_speciesSize[k] << endl; #endif @@ -1279,7 +1279,7 @@ namespace Cantera { "\" is not known"); } m_speciesSize[k] = getFloat(*ss, "molarVolume", "toSI"); -#ifdef DEBUG_HKM_NOT +#ifdef DEBUG_MODE_NOT cout << "species " << sss[k] << " has volume " << m_speciesSize[k] << endl; #endif diff --git a/Cantera/src/thermo/HMWSoln_input.cpp b/Cantera/src/thermo/HMWSoln_input.cpp index 34d8fcc90..bca1ae93f 100644 --- a/Cantera/src/thermo/HMWSoln_input.cpp +++ b/Cantera/src/thermo/HMWSoln_input.cpp @@ -782,7 +782,7 @@ namespace Cantera { string nodeName = lowercase(stemp); if (nodeName == "lambda") { int nCount = iSpecies*m_kk + jSpecies; - getFloatArray(xmlChild, vParams, false, "", "Lambda"); + getFloatArray(xmlChild, vParams, false, "", stemp); nParamsFound = vParams.size(); if (m_formPitzerTemp == PITZER_TEMP_CONSTANT) { if (nParamsFound != 1) {