mirror of
https://git.gfz-potsdam.de/naaice/iphreeqc.git
synced 2025-12-15 16:18:22 +01:00
parent
ce34aa5e05
commit
3fd5b896c9
@ -704,8 +704,7 @@ calc_gas_binary_parameter(std::string name1, std::string name2) const
|
||||
/* ---------------------------------------------------------------------- */
|
||||
{
|
||||
double f = 1.0;
|
||||
std::pair < std::string, std::string > p;
|
||||
p = { name1, name2 };
|
||||
std::pair<std::string, std::string> p(name1, name2);
|
||||
std::map<std::pair<std::string, std::string>, double>::const_iterator gas_pair_it;
|
||||
gas_pair_it = gas_binary_parameters.find(p);
|
||||
if (gas_pair_it != gas_binary_parameters.end())
|
||||
|
||||
@ -2626,11 +2626,8 @@ read_gas_binary_parameters(void)
|
||||
}
|
||||
if (!error)
|
||||
{
|
||||
std::pair<std::string, std::string> p;
|
||||
p = { gas1, gas2 };
|
||||
gas_binary_parameters[p] = d;
|
||||
p = { gas2, gas1 };
|
||||
gas_binary_parameters[p] = d;
|
||||
gas_binary_parameters[std::make_pair(gas1, gas2)] = d;
|
||||
gas_binary_parameters[std::make_pair(gas2, gas1)] = d;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user