Skip to content

Commit

Permalink
bug fixedin setMassFractionsByName
Browse files Browse the repository at this point in the history
  • Loading branch information
Dave Goodwin committed Mar 13, 2004
1 parent 52ea110 commit 08e46a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Cantera/src/Phase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 08e46a5

Please sign in to comment.