Skip to content

Commit

Permalink
[Kinetics] Restore old handling of repeated species in path diagrams
Browse files Browse the repository at this point in the history
Fixes an error introduced in 37f71bd which caused these reactions to be
ignored. However, flux calculations for reactions such as H + HO2 -> 2 OH are
still incorrect.
  • Loading branch information
speth committed Feb 13, 2017
1 parent 0d982c8 commit 3093e6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/kinetics/ReactionPath.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -566,10 +566,10 @@ int ReactionPathBuilder::init(ostream& logfile, Kinetics& kin)
vector<vector<size_t> > allReactants(m_nr);
for (size_t i = 0; i < m_nr; i++) {
for (size_t k = 0; k < m_ns; k++) {
if (kin.reactantStoichCoeff(k, i)) {
for (int n = 0; n < kin.reactantStoichCoeff(k, i); n++) {
allReactants[i].push_back(k);
}
if (kin.productStoichCoeff(k, i)) {
for (int n = 0; n < kin.productStoichCoeff(k, i); n++) {
allProducts[i].push_back(k);
}
}
Expand Down

0 comments on commit 3093e6e

Please sign in to comment.