Skip to content

Commit

Permalink
[Thermo] Always initialize BinarySolutionTabulatedThermo member varia…
Browse files Browse the repository at this point in the history
…bles
  • Loading branch information
speth committed Feb 21, 2019
1 parent f0c797c commit 7cf58af
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/thermo/BinarySolutionTabulatedThermo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,24 @@ namespace Cantera
{

BinarySolutionTabulatedThermo::BinarySolutionTabulatedThermo()
: m_kk_tab(npos)
, m_xlast(-1)
{
}

BinarySolutionTabulatedThermo::BinarySolutionTabulatedThermo(const std::string& inputFile,
const std::string& id_)
const std::string& id_)
: m_kk_tab(npos)
, m_xlast(-1)

{
initThermoFile(inputFile, id_);
}

BinarySolutionTabulatedThermo::BinarySolutionTabulatedThermo(XML_Node& root,
const std::string& id_)
const std::string& id_)
: m_kk_tab(npos)
, m_xlast(-1)
{
importPhase(root, this);
}
Expand Down

0 comments on commit 7cf58af

Please sign in to comment.