mirror of
https://git.gfz-potsdam.de/naaice/iphreeqc.git
synced 2025-12-16 16:44:49 +01:00
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:
parent
0030e8dafd
commit
de0ec2ad75
@ -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())
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user