Added an AssertThrowMsg at a point which is frequently reached when
the object hasn't been properly inialized.
This commit is contained in:
parent
ea21c1590b
commit
ac2c285479
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue