diff --git a/include/cantera/thermo/PDSS.h b/include/cantera/thermo/PDSS.h index b67d80d20..ab0d47062 100644 --- a/include/cantera/thermo/PDSS.h +++ b/include/cantera/thermo/PDSS.h @@ -439,7 +439,7 @@ public: virtual void setTemperature(doublereal temp); //! Return the current stored temperature - doublereal temperature() const; + virtual doublereal temperature() const; //! Set the internal temperature and pressure /*! diff --git a/include/cantera/thermo/PDSS_IdealGas.h b/include/cantera/thermo/PDSS_IdealGas.h index 3719f9ae1..ddfdb762d 100644 --- a/include/cantera/thermo/PDSS_IdealGas.h +++ b/include/cantera/thermo/PDSS_IdealGas.h @@ -114,7 +114,7 @@ public: virtual doublereal pressure() const; virtual void setPressure(doublereal pres); virtual void setTemperature(doublereal temp); - doublereal temperature() const; + virtual doublereal temperature() const; virtual void setState_TP(doublereal temp, doublereal pres); virtual void setState_TR(doublereal temp, doublereal rho); diff --git a/include/cantera/thermo/PDSS_IonsFromNeutral.h b/include/cantera/thermo/PDSS_IonsFromNeutral.h index dda684f05..c137c5d39 100644 --- a/include/cantera/thermo/PDSS_IonsFromNeutral.h +++ b/include/cantera/thermo/PDSS_IonsFromNeutral.h @@ -128,7 +128,7 @@ public: //! @{ virtual void setTemperature(doublereal temp); - doublereal temperature() const; + virtual doublereal temperature() const; virtual void setState_TP(doublereal temp, doublereal pres); virtual void setState_TR(doublereal temp, doublereal rho);