Fixed an error in an error statement.

This commit is contained in:
Harry Moffat 2009-03-03 23:51:46 +00:00
parent d8c35d4ede
commit d61b277fff
2 changed files with 8 additions and 4 deletions

View file

@ -238,14 +238,16 @@ namespace Cantera {
}
const XML_Node *ss = s->findByName("standardState");
if (!ss) {
std::string sName = s->operator[]("name");
throw CanteraError("VPSSMgr_Water_ConstVol::initThermoXML",
"no standardState Node for species " + s->name());
"no standardState Node for species " + sName);
}
std::string model = (*ss)["model"];
if (model != "constant_incompressible") {
std::string sName = s->operator[]("name");
throw CanteraError("VPSSMgr_Water_ConstVol::initThermoXML",
"standardState model for species isn't "
"constant_incompressible: " + s->name());
"constant_incompressible: " + sName);
}
m_Vss[k] = getFloat(*ss, "molarVolume", "toSI");
}

View file

@ -246,8 +246,9 @@ namespace Cantera {
const XML_Node *ss = speciesNode.findByName("standardState");
if (!ss) {
std::string sName = speciesNode["name"];
throw CanteraError("VPSSMgr_Water_HKFT::installSpecies",
"No standardState Node for species " + speciesNode.name());
"No standardState Node for species " + sName);
}
// Will have to do something for water
// -> make sure it's species 0
@ -279,9 +280,10 @@ namespace Cantera {
} else {
std::string model = (*ss)["model"];
if (model != "HKFT") {
std::string sName = speciesNode["name"];
throw CanteraError("VPSSMgr_Water_HKFT::initThermoXML",
"standardState model for species isn't "
"HKFT: " + speciesNode.name());
"HKFT: " + sName);
}
kPDSS = new PDSS_HKFT(m_vptp_ptr, k, speciesNode, *phaseNode_ptr, true);