Fixed handling of explicit reaction orders for some reactions

For reactions with unity reactant stoichiometric coefficients, explicit values
for the forward reaction order were being ignored while setting up the
StoichManager.

Cherry-picked from trunk (r1802).
This commit is contained in:
Ray Speth 2012-11-05 19:26:04 +00:00
parent 3116653f2f
commit 2e233d0542

View file

@ -827,8 +827,9 @@ public:
m_n[rxn] = k.size();
bool frac = false;
for (size_t n = 0; n < stoich.size(); n++) {
if (stoich[n] != 1.0) {
if (stoich[n] != 1.0 || order[n] != 1.0) {
frac = true;
break;
}
}
if (frac) {