From 4f41718e5b0e7da1b114b8ed8b15283133d585db Mon Sep 17 00:00:00 2001 From: Victor Brunini Date: Thu, 13 Dec 2012 22:14:02 +0000 Subject: [PATCH] Make all ThermoPhase setState functions virtual. --- include/cantera/thermo/ThermoPhase.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/include/cantera/thermo/ThermoPhase.h b/include/cantera/thermo/ThermoPhase.h index b878f3bbd..24393d9fe 100644 --- a/include/cantera/thermo/ThermoPhase.h +++ b/include/cantera/thermo/ThermoPhase.h @@ -1016,7 +1016,7 @@ public: * @param x Composition map of mole fractions. Species not in * the composition map are assumed to have zero mole fraction */ - void setState_TPX(doublereal t, doublereal p, compositionMap& x); + virtual void setState_TPX(doublereal t, doublereal p, compositionMap& x); //! Set the temperature (K), pressure (Pa), and mole fractions. /*! @@ -1028,7 +1028,7 @@ public: * @param x String containing a composition map of the mole fractions. Species not in * the composition map are assumed to have zero mole fraction */ - void setState_TPX(doublereal t, doublereal p, const std::string& x); + virtual void setState_TPX(doublereal t, doublereal p, const std::string& x); //! Set the internally stored temperature (K), pressure (Pa), and mass fractions of the phase. /*! @@ -1040,7 +1040,7 @@ public: * @param y Vector of mass fractions. * Length is equal to m_kk. */ - void setState_TPY(doublereal t, doublereal p, const doublereal* y); + virtual void setState_TPY(doublereal t, doublereal p, const doublereal* y); //! Set the internally stored temperature (K), pressure (Pa), and mass fractions of the phase /*! @@ -1052,7 +1052,7 @@ public: * @param y Composition map of mass fractions. Species not in * the composition map are assumed to have zero mass fraction */ - void setState_TPY(doublereal t, doublereal p, compositionMap& y); + virtual void setState_TPY(doublereal t, doublereal p, compositionMap& y); //! Set the internally stored temperature (K), pressure (Pa), and mass fractions of the phase /*! @@ -1064,7 +1064,7 @@ public: * @param y String containing a composition map of the mass fractions. Species not in * the composition map are assumed to have zero mass fraction */ - void setState_TPY(doublereal t, doublereal p, const std::string& y); + virtual void setState_TPY(doublereal t, doublereal p, const std::string& y); //! Set the temperature (K) and pressure (Pa) /*! @@ -1073,7 +1073,7 @@ public: * @param t Temperature (K) * @param p Pressure (Pa) */ - void setState_TP(doublereal t, doublereal p); + virtual void setState_TP(doublereal t, doublereal p); //! Set the pressure (Pa) and mole fractions. /*! @@ -1084,7 +1084,7 @@ public: * @param x Vector of mole fractions. * Length is equal to m_kk. */ - void setState_PX(doublereal p, doublereal* x); + virtual void setState_PX(doublereal p, doublereal* x); //! Set the internally stored pressure (Pa) and mass fractions. /*! @@ -1096,7 +1096,7 @@ public: * @param y Vector of mass fractions. * Length is equal to m_kk. */ - void setState_PY(doublereal p, doublereal* y); + virtual void setState_PY(doublereal p, doublereal* y); //! Set the internally stored specific enthalpy (J/kg) and pressure (Pa) of the phase. /*!