Fixed bug, and streamlined.

git-svn-id: svn://136.177.114.72/svn_GW/phreeqcpp/trunk@2376 1feff8c3-07ed-0310-ac33-dd36852eb9cd
This commit is contained in:
David L Parkhurst 2007-11-07 22:23:47 +00:00
parent 3f93ab5a1c
commit f4777a194b

View File

@ -865,8 +865,17 @@ double cxxSolution::get_total_element(char *string)const
d += it->second;
}
#endif
char token[MAX_LENGTH], token1[MAX_LENGTH];
int n;
char *ptr;
strcpy(token, it->first);
replace("(", "\0", token);
if (strcmp(token, string) == 0) {
d += it->second;
}
#ifdef SKIP
std::string ename(string);
std::string current_ename(string);
std::string current_ename(it->first);
std::basic_string <char>::size_type indexCh;
indexCh = current_ename.find("(");
if (indexCh != std::string::npos)
@ -877,6 +886,7 @@ double cxxSolution::get_total_element(char *string)const
{
d += it->second;
}
#endif
}
return(d);
}