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:
David L Parkhurst 2015-03-16 18:46:40 +00:00
parent 544db5a230
commit 66f047f9c4

View File

@ -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);