From 23b725d3a8a55d7ce536899bcff072b07791d69c Mon Sep 17 00:00:00 2001 From: Steven DeCaluwe Date: Mon, 15 Jul 2013 17:43:54 +0000 Subject: [PATCH] Removed 'const' declaration for function satPressure in members of the ThermoPhase class --- include/cantera/thermo/PureFluidPhase.h | 2 +- include/cantera/thermo/SingleSpeciesTP.h | 2 +- src/thermo/PureFluidPhase.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/cantera/thermo/PureFluidPhase.h b/include/cantera/thermo/PureFluidPhase.h index 7be1bf37b..ecbf05321 100644 --- a/include/cantera/thermo/PureFluidPhase.h +++ b/include/cantera/thermo/PureFluidPhase.h @@ -442,7 +442,7 @@ public: /*! * @param t Temperature (Kelvin) */ - virtual doublereal satPressure(doublereal t) const; + virtual doublereal satPressure(doublereal t); //! Return the fraction of vapor at the current conditions virtual doublereal vaporFraction() const; diff --git a/include/cantera/thermo/SingleSpeciesTP.h b/include/cantera/thermo/SingleSpeciesTP.h index 7fd09994f..19a38613a 100644 --- a/include/cantera/thermo/SingleSpeciesTP.h +++ b/include/cantera/thermo/SingleSpeciesTP.h @@ -601,7 +601,7 @@ public: return -1.0; } - virtual doublereal satPressure(doublereal t) const { + virtual doublereal satPressure(doublereal t) { err("satPressure"); return -1.0; } diff --git a/src/thermo/PureFluidPhase.cpp b/src/thermo/PureFluidPhase.cpp index f3df32947..d9d615459 100644 --- a/src/thermo/PureFluidPhase.cpp +++ b/src/thermo/PureFluidPhase.cpp @@ -343,7 +343,7 @@ void PureFluidPhase::setState_SP(doublereal s, doublereal p, setState_TR(m_sub->Temp(), 1.0/m_sub->v()); } -doublereal PureFluidPhase::satPressure(doublereal t) const +doublereal PureFluidPhase::satPressure(doublereal t) { doublereal vsv = m_sub->v(); Set(tpx::PropertyPair::TV,t,vsv);