Fixed an error in the assignment operator.

The internal state of the VPSSMgr object must be resynced
by calling stateState_TP() after the new VMSSMgr object is set up.
This commit is contained in:
Harry Moffat 2009-12-22 22:23:53 +00:00
parent ec3c7e37c7
commit a7a59b84b8

View file

@ -74,7 +74,7 @@ namespace Cantera {
if (&b != this) {
/*
* Mostly, this is a passthrough to the underlying
* assignment operator for the ThermoPhae parent object.
* assignment operator for the ThermoPhase parent object.
*/
ThermoPhase::operator=(b);
/*
@ -124,7 +124,12 @@ namespace Cantera {
PDSS *ptmp = m_PDSS_storage[k];
ptmp->initAllPtrs(this, m_VPSS_ptr, m_spthermo);
}
/*
* Ok, the VPSSMgr object is ready for business.
* We need to resync the temperature and the pressure of the new standard states
* with what is storred in this object.
*/
m_VPSS_ptr->setState_TP(m_Tlast_ss, m_Plast_ss);
}
return *this;
}