[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.
This commit is contained in:
Ray Speth 2019-03-05 23:22:07 -05:00
parent aceb896f62
commit bdc81684b1

View file

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