mirror of
https://git.gfz-potsdam.de/naaice/iphreeqc.git
synced 2025-12-15 16:18:22 +01:00
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:
parent
3f93ab5a1c
commit
f4777a194b
12
Solution.cxx
12
Solution.cxx
@ -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);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user