Added a getMoleFraction to GibbsExcess at the start of the

calculation. Want the mole fraction to be synched at all times.
This commit is contained in:
Harry Moffat 2011-10-04 23:33:58 +00:00
parent 788697405f
commit 6a3c7eabd4
2 changed files with 5 additions and 1 deletions

View file

@ -332,6 +332,7 @@ namespace Cantera {
void GibbsExcessVPSSTP::initThermo() {
initLengths();
VPStandardStateTP::initThermo();
getMoleFractions(DATA_PTR(moleFractions_));
}

View file

@ -394,7 +394,10 @@ namespace Cantera {
protected:
int m_kk;
doublereal m_tmin, m_tmax, m_press, m_p0;
doublereal m_tmin;
doublereal m_tmax;
doublereal m_press;
doublereal m_p0;
mutable doublereal m_tlast;
mutable array_fp m_h0_RT;