From a4a81b94eb8545caf44d10c8f9c818b880d28f43 Mon Sep 17 00:00:00 2001 From: Ray Speth Date: Mon, 27 Feb 2012 18:14:29 +0000 Subject: [PATCH] Deprecated SpeciesThermo::modifyParams --- include/cantera/thermo/GeneralSpeciesThermo.h | 3 ++- include/cantera/thermo/SimpleThermo.h | 3 ++- include/cantera/thermo/SpeciesThermo.h | 3 ++- include/cantera/thermo/SpeciesThermoMgr.h | 6 ++++-- 4 files changed, 10 insertions(+), 5 deletions(-) diff --git a/include/cantera/thermo/GeneralSpeciesThermo.h b/include/cantera/thermo/GeneralSpeciesThermo.h index 568bb8d57..51a4e3239 100644 --- a/include/cantera/thermo/GeneralSpeciesThermo.h +++ b/include/cantera/thermo/GeneralSpeciesThermo.h @@ -210,8 +210,9 @@ public: * @param index Species index * @param c Vector of coefficients used to set the * parameters for the standard state. + * @deprecated */ - virtual void modifyParams(size_t index, doublereal* c); + DEPRECATED(virtual void modifyParams(size_t index, doublereal* c)); #ifdef H298MODIFY_CAPABILITY diff --git a/include/cantera/thermo/SimpleThermo.h b/include/cantera/thermo/SimpleThermo.h index 0d6a35e83..497664e02 100644 --- a/include/cantera/thermo/SimpleThermo.h +++ b/include/cantera/thermo/SimpleThermo.h @@ -356,8 +356,9 @@ public: * @param c Vector of coefficients used to set the * parameters for the standard state. * Must be length >= 4. + * @deprecated */ - virtual void modifyParams(size_t index, doublereal* c) { + DEPRECATED(virtual void modifyParams(size_t index, doublereal* c)) { size_t loc = m_loc[index]; if (loc == npos) { throw CanteraError("SimpleThermo::modifyParams", diff --git a/include/cantera/thermo/SpeciesThermo.h b/include/cantera/thermo/SpeciesThermo.h index 4f16cb5aa..f359e80bc 100644 --- a/include/cantera/thermo/SpeciesThermo.h +++ b/include/cantera/thermo/SpeciesThermo.h @@ -360,8 +360,9 @@ public: * @param index Species index * @param c Vector of coefficients used to set the * parameters for the standard state. + * @deprecated */ - virtual void modifyParams(size_t index, doublereal* c) = 0; + DEPRECATED(virtual void modifyParams(size_t index, doublereal* c)) = 0; #ifdef H298MODIFY_CAPABILITY //! Report the 298 K Heat of Formation of the standard state of one species (J kmol-1) diff --git a/include/cantera/thermo/SpeciesThermoMgr.h b/include/cantera/thermo/SpeciesThermoMgr.h index 7f2be75a6..d439f9f30 100644 --- a/include/cantera/thermo/SpeciesThermoMgr.h +++ b/include/cantera/thermo/SpeciesThermoMgr.h @@ -317,8 +317,9 @@ public: * @param index Species index * @param c Vector of coefficients used to set the * parameters for the standard state. + * @deprecated */ - virtual void modifyParams(size_t index, doublereal* c); + DEPRECATED(virtual void modifyParams(size_t index, doublereal* c)); #ifdef H298MODIFY_CAPABILITY @@ -480,8 +481,9 @@ public: * @param index Species index * @param c Vector of coefficients used to set the * parameters for the standard state. + * @deprecated */ - virtual void modifyParams(size_t index, doublereal* c); + DEPRECATED(virtual void modifyParams(size_t index, doublereal* c)); #ifdef H298MODIFY_CAPABILITY //! Report the 298 K Heat of Formation of the standard state of one species (J kmol-1)