Skip to content

Commit 9666a77

Browse files
committed
[Reactor] Fix net surface mass flux calc in FlowReactor (Cantera#2069)
1 parent 2e38b2f commit 9666a77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/zeroD/FlowReactor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ void FlowReactor::evalDae(double time, double* y, double* ydot, double* residual
251251
const vector<double>& mw = m_thermo->molecularWeights();
252252
double sk_wk = 0;
253253
for (size_t i = 0; i < m_nsp; ++i) {
254-
sk_wk = m_sdot[i] * mw[i];
254+
sk_wk += m_sdot[i] * mw[i];
255255
}
256256
m_thermo->getPartialMolarEnthalpies(m_hk.data());
257257
// get net production

0 commit comments

Comments
 (0)