Deprecate Kinetics::activationEnergies

This commit is contained in:
Ray Speth 2013-06-06 15:33:00 +00:00
parent a972a7f558
commit 305e4eec54
2 changed files with 3 additions and 0 deletions

View file

@ -752,6 +752,7 @@ public:
* length is the number of reactions
*
* @param E Ouptut vector of activation energies. Length: m_ii.
* @deprecated To be removed in Cantera 2.2.
*/
virtual void getActivationEnergies(doublereal* E) {
err("getActivationEnergies");

View file

@ -497,6 +497,8 @@ void InterfaceKinetics::getRevRateConstants(doublereal* krev, bool doIrreversibl
void InterfaceKinetics::getActivationEnergies(doublereal* E)
{
warn_deprecated("Kinetics::getActivationEnergies",
"To be removed in Cantera 2.2.");
copy(m_E.begin(), m_E.end(), E);
}