mirror of
https://git.gfz-potsdam.de/naaice/iphreeqc.git
synced 2025-12-16 16:44:49 +01:00
default initial solution for the reaction calculation was not defined properly when using only
SOLUTION_SPREAD. Modified tidy_solutions to assign first number (1) for that case. Added example num_spread. git-svn-id: svn://136.177.114.72/svn_GW/phreeqc3/trunk@9364 1feff8c3-07ed-0310-ac33-dd36852eb9cd
This commit is contained in:
parent
544db5a230
commit
66f047f9c4
4
tidy.cpp
4
tidy.cpp
@ -3210,6 +3210,10 @@ tidy_solutions(void)
|
||||
// put unnumbered solutions in map
|
||||
for (size_t i = 0; i < unnumbered_solutions.size(); i++)
|
||||
{
|
||||
if (use.Get_n_solution_user() < 0)
|
||||
{
|
||||
use.Set_n_solution_user(last + 1);
|
||||
}
|
||||
unnumbered_solutions[i].Set_n_user_both(++last);
|
||||
Rxn_solution_map[last] = unnumbered_solutions[i];
|
||||
Rxn_new_solution.insert(last);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user