mirror of
https://git.gfz-potsdam.de/naaice/iphreeqc.git
synced 2025-12-16 00:28:23 +01:00
Including OH- in converting units. Revised calculated density for H+ and OH-. Makes a difference in several test cases. Removed timing at end of .out in test cases. Checking in all test cases and selected output.
This commit is contained in:
parent
47e1ce5dfb
commit
48cb5e8969
5
prep.cpp
5
prep.cpp
@ -1798,6 +1798,9 @@ convert_units(cxxSolution *solution_ptr)
|
||||
/*
|
||||
* Convert units
|
||||
*/
|
||||
#ifdef ORIGINAL
|
||||
sum_solutes = exp(-solution_ptr->Get_ph() * LOG_10);
|
||||
#else
|
||||
double g_h, g_oh;
|
||||
compute_gfw("H", &g_h);
|
||||
compute_gfw("OH", &g_oh);
|
||||
@ -1813,7 +1816,7 @@ convert_units(cxxSolution *solution_ptr)
|
||||
species* s_oh = s_search("OH-");
|
||||
sum_solutes += s_oh->moles / soln_vol * g_oh;
|
||||
}
|
||||
|
||||
#endif
|
||||
cxxISolution *initial_data_ptr = solution_ptr->Get_initial_data();
|
||||
std::map<std::string, cxxISolutionComp >::iterator jit = initial_data_ptr->Get_comps().begin();
|
||||
for ( ; jit != initial_data_ptr->Get_comps().end(); jit++)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user