Fixed GRI30.h. The id was wrong and caused a test problem to fail.

This commit is contained in:
Harry Moffat 2003-08-06 18:15:34 +00:00
parent b87d572e97
commit a59d1a233b
2 changed files with 4 additions and 2 deletions

View File

@ -23,7 +23,7 @@ namespace Cantera {
m_r = new XML_Node("-");
m_r->build(fin);
m_ok = buildSolutionFromXML(*m_r, "gri30_hw", "phase", this, this);
m_ok = buildSolutionFromXML(*m_r, "gri30", "phase", this, this);
if (!m_ok) throw CanteraError("GRI30",
"buildSolutionFromXML returned false");
}

View File

@ -34,7 +34,9 @@ namespace Cantera {
m_ok = buildSolutionFromXML(root, id, "phase", this, this);
}
virtual ~IdealGasMix() {}
virtual ~IdealGasMix() {
delete m_r;
}
bool operator!() { return !m_ok;}
bool ready() { return m_ok; }