From 2ee8ae220d2370ad05f7c6fbd4ab9617e9a7acab Mon Sep 17 00:00:00 2001 From: Harry Moffat Date: Tue, 22 Dec 2009 22:35:30 +0000 Subject: [PATCH] Fixed an error with the assignment and copy constructor. The VPSSMgr object needed to be resynched with the VPStandardStateTP object after it was set up. This was not done. --- Cantera/src/thermo/VPStandardStateTP.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Cantera/src/thermo/VPStandardStateTP.cpp b/Cantera/src/thermo/VPStandardStateTP.cpp index 5404615e9..c9b9b7145 100644 --- a/Cantera/src/thermo/VPStandardStateTP.cpp +++ b/Cantera/src/thermo/VPStandardStateTP.cpp @@ -110,6 +110,12 @@ namespace Cantera { PDSS *ptmp = b.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; }