From c81de1d08e466ed5fc882f6aa417a57474bc76ac Mon Sep 17 00:00:00 2001 From: Ray Speth Date: Wed, 21 May 2014 16:34:51 +0000 Subject: [PATCH] Make PDSS::temperature() virtual This reflects how it's used, being overridden in several derived classes. --- include/cantera/thermo/PDSS.h | 2 +- include/cantera/thermo/PDSS_IdealGas.h | 2 +- include/cantera/thermo/PDSS_IonsFromNeutral.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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);