Fixed an error in the element abundance calculation.
This commit is contained in:
parent
1e07d47bb8
commit
250aae64ee
1 changed files with 1 additions and 1 deletions
|
|
@ -442,7 +442,6 @@ namespace Cantera {
|
|||
phase_t* p = m_phase[ip];
|
||||
int nspPhase = p->nSpecies();
|
||||
doublereal phasemoles = m_moles[ip];
|
||||
loc += nspPhase;
|
||||
for (ik = 0; ik < nspPhase; ik++) {
|
||||
kGlobal = loc + ik;
|
||||
spMoles = m_moleFractions[kGlobal] * phasemoles;
|
||||
|
|
@ -450,6 +449,7 @@ namespace Cantera {
|
|||
m_elemAbundances[eGlobal] += m_atoms(eGlobal, kGlobal) * spMoles;
|
||||
}
|
||||
}
|
||||
loc += nspPhase;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue