[Thermo] Fix IdealGasPhase constructor from XML_Node

This commit is contained in:
Ray Speth 2015-08-04 12:01:45 -04:00
parent 78412b3d72
commit ff60328ecd

View file

@ -6,6 +6,7 @@
*/ */
#include "cantera/thermo/IdealGasPhase.h" #include "cantera/thermo/IdealGasPhase.h"
#include "cantera/thermo/ThermoFactory.h"
#include "cantera/base/utilities.h" #include "cantera/base/utilities.h"
using namespace std; using namespace std;
@ -30,7 +31,7 @@ IdealGasPhase::IdealGasPhase(XML_Node& phaseRef, const std::string& id_) :
m_p0(-1.0), m_p0(-1.0),
m_logc0(0.0) m_logc0(0.0)
{ {
initThermoXML(phaseRef, id_); importPhase(phaseRef, this);
} }
IdealGasPhase::IdealGasPhase(const IdealGasPhase& right) : IdealGasPhase::IdealGasPhase(const IdealGasPhase& right) :