bug fixedin setMassFractionsByName
This commit is contained in:
parent
52ea110888
commit
08e46a54e7
1 changed files with 1 additions and 1 deletions
|
|
@ -72,7 +72,7 @@ namespace Cantera {
|
|||
void Phase::setMassFractionsByName(compositionMap& yMap) {
|
||||
int kk = nSpecies();
|
||||
doublereal y;
|
||||
vector_fp mf(kk);
|
||||
vector_fp mf(kk, 0.0);
|
||||
for (int k = 0; k < kk; k++) {
|
||||
y = yMap[speciesName(k)];
|
||||
if (y > 0.0) mf[k] = y;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue