From 9a6ec5b1406f8167c4b2798261b321e49a1e4015 Mon Sep 17 00:00:00 2001 From: David L Parkhurst Date: Tue, 10 Jan 2017 16:55:38 +0000 Subject: [PATCH] Error in sys("equi",...). Returned the values from the phases structure rather than from the unknown structure. So, the value from the beginning of the simulation was given rather than the reacted amount. git-svn-id: svn://136.177.114.72/svn_GW/phreeqc3/trunk@12204 1feff8c3-07ed-0310-ac33-dd36852eb9cd --- basicsubs.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/basicsubs.cpp b/basicsubs.cpp index b67698a0..5390c0af 100644 --- a/basicsubs.cpp +++ b/basicsubs.cpp @@ -3246,7 +3246,8 @@ system_total_equi(void) int l; struct phase *phase_ptr = phase_bsearch(comp_ptr->Get_name().c_str(), &l, FALSE); sys[count_sys].name = string_duplicate(phase_ptr->name); - sys[count_sys].moles = comp_ptr->Get_moles(); + //sys[count_sys].moles = comp_ptr->Get_moles(); + sys[count_sys].moles = equi_phase(sys[count_sys].name); sys_tot += sys[count_sys].moles; sys[count_sys].type = string_duplicate("equi"); count_sys++;