From d96464f0c2c6ab8c6d622ba672110db2a5fa1f08 Mon Sep 17 00:00:00 2001 From: Harry Moffat Date: Tue, 22 Dec 2009 22:27:01 +0000 Subject: [PATCH] Fixed an error in the assignment and copy constructor. The VPSSMgr object needed to be resynced at the end of the assignment. This wasn't being done. --- Cantera/src/thermo/VPStandardStateTP.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Cantera/src/thermo/VPStandardStateTP.cpp b/Cantera/src/thermo/VPStandardStateTP.cpp index 8331f6d86..2c1da45e1 100644 --- a/Cantera/src/thermo/VPStandardStateTP.cpp +++ b/Cantera/src/thermo/VPStandardStateTP.cpp @@ -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; }