diff --git a/Cantera/src/thermo/Phase.cpp b/Cantera/src/thermo/Phase.cpp index 9d92821a1..423aa8c24 100755 --- a/Cantera/src/thermo/Phase.cpp +++ b/Cantera/src/thermo/Phase.cpp @@ -22,9 +22,14 @@ using namespace std; namespace Cantera { Phase::Phase() : - m_kk(-1), m_ndim(3), m_index(-1), + Constituents(), + State(), + m_kk(-1), + m_ndim(3), + m_index(-1), m_xml(new XML_Node("phase")), - m_id(""), m_name("") + m_id(""), + m_name("") { } diff --git a/Cantera/src/thermo/ThermoPhase.h b/Cantera/src/thermo/ThermoPhase.h index 1465f6d97..efb22b378 100755 --- a/Cantera/src/thermo/ThermoPhase.h +++ b/Cantera/src/thermo/ThermoPhase.h @@ -786,7 +786,16 @@ namespace Cantera { virtual void modifyOneHf298SS(const int k, const doublereal Hf298New) { m_spthermo->modifyOneHf298(k, Hf298New); } +#else + doublereal Hf298SS(const int k) const { + return err("Hf298SS - H298MODIFY_CAPABILITY not compiled in"); + } + + virtual void modifyOneHf298SS(const int k, const doublereal Hf298New) { + return err("Hf298SS - H298MODIFY_CAPABILITY not compiled in"); + } #endif + //! Maximum temperature for which the thermodynamic data for the species //! are valid. /*!