Added an AssertThrowMsg at a point which is frequently reached when

the object hasn't been properly inialized.
This commit is contained in:
Harry Moffat 2008-09-05 23:53:47 +00:00
parent ea21c1590b
commit ac2c285479

View file

@ -445,6 +445,8 @@ namespace Cantera {
double Tnow = temperature();
m_Plast_ss = m_Pcurrent;
m_Tlast_ss = Tnow;
AssertThrowMsg(m_VPSS_ptr != 0, "VPStandardStateTP::_updateStandardStateThermo()",
"Probably indicates that ThermoPhase object wasn't initialized correctly");
m_VPSS_ptr->setState_TP(Tnow, m_Pcurrent);
}