From 838f435ca9f7e884a1242a2cd556209f596811cb Mon Sep 17 00:00:00 2001 From: Ray Speth Date: Tue, 10 Mar 2015 22:41:29 +0000 Subject: [PATCH] [Kinetics] Deprecate class ExchangeCurrent Unused duplicate of class Arrhenius --- include/cantera/kinetics/RxnRates.h | 1 + src/kinetics/RxnRates.cpp | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/include/cantera/kinetics/RxnRates.h b/include/cantera/kinetics/RxnRates.h index 5a2abacb9..8044e6d28 100644 --- a/include/cantera/kinetics/RxnRates.h +++ b/include/cantera/kinetics/RxnRates.h @@ -220,6 +220,7 @@ protected: * k_f = A T^b \exp (-E/RT) * \f] * + * @deprecated Duplicate of class Arrhenius. To be removed after Cantera 2.2. */ class ExchangeCurrent { diff --git a/src/kinetics/RxnRates.cpp b/src/kinetics/RxnRates.cpp index c707673d3..f16967d21 100644 --- a/src/kinetics/RxnRates.cpp +++ b/src/kinetics/RxnRates.cpp @@ -107,6 +107,8 @@ ExchangeCurrent::ExchangeCurrent() , m_E(0.0) , m_A(0.0) { + warn_deprecated("class ExchangeCurrent", "Duplicate of class Arrhenius." + " To be removed after Cantera 2.2."); } ExchangeCurrent::ExchangeCurrent(const ReactionData& rdata) @@ -114,6 +116,8 @@ ExchangeCurrent::ExchangeCurrent(const ReactionData& rdata) , m_E(rdata.rateCoeffParameters[2]) , m_A(rdata.rateCoeffParameters[0]) { + warn_deprecated("class ExchangeCurrent", "Duplicate of class Arrhenius." + " To be removed after Cantera 2.2."); if (m_A <= 0.0) { m_logA = -1.0E300; } else { @@ -126,6 +130,8 @@ ExchangeCurrent::ExchangeCurrent(doublereal A, doublereal b, doublereal E) , m_E(E) , m_A(A) { + warn_deprecated("class ExchangeCurrent", "Duplicate of class Arrhenius." + " To be removed after Cantera 2.2."); if (m_A <= 0.0) { m_logA = -1.0E300; } else {