Fixed bug with redefinition of sit parameters

git-svn-id: svn://136.177.114.72/svn_GW/phreeqc3/trunk@8627 1feff8c3-07ed-0310-ac33-dd36852eb9cd
This commit is contained in:
David L Parkhurst 2014-04-08 15:06:20 +00:00
parent 0030e8dafd
commit de0ec2ad75

View File

@ -232,13 +232,16 @@ sit_param_store(struct pitz_param *pzp_ptr, bool force_copy)
{
if (pzp_ptr->species[i] != NULL) header.insert(pzp_ptr->species[i]);
}
std::string key;
std::ostringstream key_str;
key_str << pzp_ptr->type << " ";
std::set< std::string >::iterator it = header.begin();
for(; it != header.end(); ++it)
{
key += (*it);
key += " ";
key_str << *it << " ";
}
std::string key = key_str.str().c_str();
std::map< std::string, size_t>::iterator jit = sit_param_map.find(key);
if (jit != sit_param_map.end())
{