Fixed an error in reading the lambda coeff from the database.

This commit is contained in:
Harry Moffat 2009-01-29 02:07:05 +00:00
parent ceedaac03f
commit c5f8c0f4b4
2 changed files with 4 additions and 4 deletions

View file

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

View file

@ -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) {