Removed unused functions from Rate1 and removed the unused Rate2 class

This commit is contained in:
Ray Speth 2012-08-29 22:13:49 +00:00
parent 6e63ad9c91
commit 85571ab7c8

View file

@ -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<size_t> m_rxn;
};
/**
* This rate coefficient manager supports two parameterizations of
* any type.
*/
template<class R1, class R2>
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<R1> m_r1;
Rate1<R2> m_r2;
};
}
#endif