bug fixedin setMassFractionsByName

This commit is contained in:
Dave Goodwin 2004-03-13 03:25:15 +00:00
parent 52ea110888
commit 08e46a54e7

View file

@ -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;