fixed bug that resulted in incorrect computation of product concentration products when rxn has 4 or more product molecules and one or more has a stoich coeff > 1

This commit is contained in:
Dave Goodwin 2006-10-31 19:09:29 +00:00
parent 1481f13b94
commit 9f34a57aa6

View file

@ -113,7 +113,9 @@ namespace Cantera {
"\nfor irreversible reactions");
}
if (pk.size() > 3) {
m_revproducts->add(rxn, r.products, m_dummy, r.pstoich);
// mod dgg 10/31/06
m_revproducts->add(rxn, r.products, r.pstoich, r.pstoich);
//m_revproducts->add(rxn, r.products, m_dummy, r.pstoich);
}
else {
m_revproducts->add(rxn, pk);