From 81af5d3a3ac18b0286177a6ded6074fb7e44e51f Mon Sep 17 00:00:00 2001 From: Harry Moffat Date: Wed, 18 Jul 2007 21:27:52 +0000 Subject: [PATCH] Fixed an error in the function setMoleFractions_NoNorm(). The error was introduced in v. 1.2 of this file on 5/4/07, and lead to bad values for output mass fractions. --- Cantera/src/thermo/State.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Cantera/src/thermo/State.cpp b/Cantera/src/thermo/State.cpp index 67e4aaf03..c3bbbb2c5 100644 --- a/Cantera/src/thermo/State.cpp +++ b/Cantera/src/thermo/State.cpp @@ -1,10 +1,8 @@ /** - * * @file State.cpp * Definitions for the class State, that manages the independent variables of temperature, mass density, * and species mass/mole fraction that define the thermodynamic state (see \ref phases and * class \link Cantera::State State\endlink). - * */ /* @@ -101,7 +99,7 @@ namespace Cantera { m_mmw = dot(x, x + m_kk, m_molwts.begin()); doublereal rmmw = 1.0/m_mmw; transform(x, x + m_kk, m_ym.begin(), timesConstant(rmmw)); - transform(m_y.begin(), m_y.begin() + m_kk, m_molwts.begin(), + transform(m_ym.begin(), m_ym.begin() + m_kk, m_molwts.begin(), m_y.begin(), multiplies()); }