From ac2361ee53c5b289f9eb84bf48588af7e466b9ec Mon Sep 17 00:00:00 2001 From: Ray Speth Date: Sun, 17 Apr 2016 22:49:28 -0400 Subject: [PATCH] [Thermo] Deprecate IdealSolidSolnPhase::referenceConcentration --- include/cantera/thermo/IdealSolidSolnPhase.h | 2 ++ src/thermo/IdealSolidSolnPhase.cpp | 3 +++ 2 files changed, 5 insertions(+) diff --git a/include/cantera/thermo/IdealSolidSolnPhase.h b/include/cantera/thermo/IdealSolidSolnPhase.h index 84acfb3ae..a4894630e 100644 --- a/include/cantera/thermo/IdealSolidSolnPhase.h +++ b/include/cantera/thermo/IdealSolidSolnPhase.h @@ -343,6 +343,8 @@ public: * concentration -> suggest changing the name). This is the inverse of the * species molar volume. * + * @deprecated Unused duplicate of standardConcentration. To be removed + * after Cantera 2.3. * @param k Species index. */ virtual doublereal referenceConcentration(int k) const; diff --git a/src/thermo/IdealSolidSolnPhase.cpp b/src/thermo/IdealSolidSolnPhase.cpp index 060dfb485..7966b0f40 100644 --- a/src/thermo/IdealSolidSolnPhase.cpp +++ b/src/thermo/IdealSolidSolnPhase.cpp @@ -238,6 +238,9 @@ doublereal IdealSolidSolnPhase::standardConcentration(size_t k) const } doublereal IdealSolidSolnPhase::referenceConcentration(int k) const { + warn_deprecated("IdealSolidSolnPhase::referenceConcentration", + "Unused duplicate of standardConcentration. " + "To be removed after Cantera 2.3."); switch (m_formGC) { case 0: return 1.0;