From bdc81684b10561a5dab8507e42f8bca95e1c2717 Mon Sep 17 00:00:00 2001 From: Ray Speth Date: Tue, 5 Mar 2019 23:22:07 -0500 Subject: [PATCH] [Thermo] Fix BinarySolutionTabulatedThermo initial mole fraction thermo The value of m_xlast should only be set to a valid value by _updateThermo, after it has calculated values for the tabulated enthalpy and entropy. --- src/thermo/BinarySolutionTabulatedThermo.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/thermo/BinarySolutionTabulatedThermo.cpp b/src/thermo/BinarySolutionTabulatedThermo.cpp index 166192a03..fa87dc735 100644 --- a/src/thermo/BinarySolutionTabulatedThermo.cpp +++ b/src/thermo/BinarySolutionTabulatedThermo.cpp @@ -113,7 +113,6 @@ void BinarySolutionTabulatedThermo::initThermoXML(XML_Node& phaseNode, const std throw CanteraError("BinarySolutionTabulatedThermo::initThermoXML", "Species " + tabulated_species_name + " not found."); } - m_xlast = moleFraction(m_kk_tab); } if (thermoNode.hasChild("tabulatedThermo")) { XML_Node& dataNode = thermoNode.child("tabulatedThermo");