From 85571ab7c80114f3b38454dec93790f10edf0765 Mon Sep 17 00:00:00 2001 From: Ray Speth Date: Wed, 29 Aug 2012 22:13:49 +0000 Subject: [PATCH] Removed unused functions from Rate1 and removed the unused Rate2 class --- include/cantera/kinetics/RateCoeffMgr.h | 52 ------------------------- 1 file changed, 52 deletions(-) diff --git a/include/cantera/kinetics/RateCoeffMgr.h b/include/cantera/kinetics/RateCoeffMgr.h index 0935f69a8..f22b98c06 100644 --- a/include/cantera/kinetics/RateCoeffMgr.h +++ b/include/cantera/kinetics/RateCoeffMgr.h @@ -50,16 +50,6 @@ public: return m_rates.size() - 1; } - /** - * Return a reference to the nth rate coefficient calculator. - * Note that this is not the same as the calculator for - * reaction n, since reactions with constant rate coefficients - * do not have a calculator. - */ - const R& rateCoeff(int loc) const { - return m_rates[loc]; - } - /** * Update the concentration-dependent parts of the rate * coefficient, if any. Used by class SurfaceArrhenius to @@ -91,10 +81,6 @@ public: } } - void writeUpdate(std::ostream& output1, std::string key) { - output1 << key; - } - size_t nReactions() const { return m_rates.size(); } @@ -104,44 +90,6 @@ protected: std::vector m_rxn; }; - - -/** - * This rate coefficient manager supports two parameterizations of - * any type. - */ -template -class Rate2 -{ -public: - - Rate2() {} - virtual ~Rate2() {} - - int install(size_t rxnNumber, int rateType, size_t m, - const doublereal* c) { - if (rateType == R1::type()) { - return m_r1.install(rxnNumber, rateType, m, c); - } else if (rateType == R2::type()) { - return m_r2.install(rxnNumber, rateType, m, c); - } else - throw CanteraError("Rate2::install", - "unknown rate coefficient type"); - return -1; - } - - void update(doublereal T, doublereal logT, - doublereal* values) { - m_r1.update(T, logT, values); - m_r2.update(T, logT, values); - } - -protected: - - Rate1 m_r1; - Rate1 m_r2; -}; - } #endif