Skip to content

Commit 7013325

Browse files
committed
MAM4xx: Fixing bug.
1 parent 998eb20 commit 7013325

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mam4xx/gas_chem_mechanism.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ imp_prod_loss(Real prod[clscnt4], Real loss[clscnt4], VectorType &y,
9797
prod[2] = (rxt[4] + 0.500000 * rxt[5] + rxt[6]) * y[4];
9898
loss[3] = (het_rates[4] + rxt[4] + rxt[5] + rxt[6]) * y[4];
9999
prod[3] = zero;
100-
for (int i = 4; i < 31; ++i) {
100+
for (int i = 4; i < clscnt4; ++i) {
101101
loss[i] = het_rates[i + 1] * y[i + 1];
102102
prod[i] = zero;
103103
}

0 commit comments

Comments
 (0)