Revert "Removed unused member variable ReactionData.rxn_number"

This variable is used in some applications we build against
cantera.

This reverts commit 7d7b6dd39d12c2e2bdd2a9d2a959c0aee3c0c4c5.
This commit is contained in:
Victor Brunini 2013-01-15 20:16:42 +00:00
parent 89406c2410
commit a709d5f816
2 changed files with 3 additions and 0 deletions

View file

@ -21,6 +21,7 @@ public:
reactionType = ELEMENTARY_RXN;
validate = false;
number = 0;
rxn_number = 0;
reversible = true;
rateCoeffType = ARRHENIUS_REACTION_RATECOEFF_TYPE;
falloffType = NONE;
@ -43,6 +44,7 @@ public:
bool validate;
int number;
int rxn_number;
std::vector<size_t> reactants;
std::vector<size_t> products;
vector_fp rorder;

View file

@ -852,6 +852,7 @@ bool rxninfo::installReaction(int iRxn, const XML_Node& r, Kinetics& kin,
rdata.equation = eqn;
rdata.number = iRxn;
rdata.rxn_number = iRxn;
// Read the rate coefficient data from the XML file. Trigger an
// exception for negative A unless specifically authorized.