diff --git a/Cantera/src/base/ct_defs.h b/Cantera/src/base/ct_defs.h index 128d28e40..ff128bc87 100755 --- a/Cantera/src/base/ct_defs.h +++ b/Cantera/src/base/ct_defs.h @@ -30,6 +30,7 @@ #include #include #include +#include //! creates a pointer to the start of the raw data for a ctvector diff --git a/Cantera/src/thermo/ThermoFactory.cpp b/Cantera/src/thermo/ThermoFactory.cpp index a30978b31..157f68b3a 100644 --- a/Cantera/src/thermo/ThermoFactory.cpp +++ b/Cantera/src/thermo/ThermoFactory.cpp @@ -171,11 +171,13 @@ namespace Cantera { const XML_Node& th = xmlphase.child("thermo"); string model = th["model"]; ThermoPhase* t = newThermoPhase(model); +#ifdef WITH_ELECTROLYTES if (model == "HMW") { HMWSoln* p = (HMWSoln*)t; p->constructPhaseXML(xmlphase,""); } else +#endif importPhase(xmlphase, t); return t; }