Skip to content

Commit 130f015

Browse files
authored
Merge pull request #84 from dlparkhurst/mix_error
Mix error
2 parents f3ef783 + d29af24 commit 130f015

7 files changed

+401
-11
lines changed

doc/RELEASE.TXT

+10-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,18 @@
11
Version @PHREEQC_VER@: @PHREEQC_DATE@
2+
-----------------
3+
November 15, 2024
4+
-----------------
5+
PhreeqcRM: Fixed a bug when the diffuse-layer disappeared in a PhreeqcRM calculation
6+
with a Runge-Kutta integration and the rate went to zero. The error produced charge
7+
imbalance because the surface transformed to a no-EDL surface; charge accumulated
8+
on the surface and was balanced by an opposite charge imbalance in the solution.
29

310
-----------------
411
November 13, 2024
512
-----------------
613
PHREEQCI: Resolved a bug that caused a buffer overflow and led to PHREEQCI
714
freezing when loaded under the Simplified Chinese locale.
8-
15+
916
-----------------
1017
November 11, 2024
1118
-----------------
@@ -29,8 +36,8 @@ Version @PHREEQC_VER@: @PHREEQC_DATE@
2936
-----------------
3037
November 7, 2024
3138
-----------------
32-
PhreeqcRM: Fixed a bug when multiple PhreeqcRM instances were created with
33-
debug compilation. Some debugging code caused a failure if the instances did
39+
PhreeqcRM: Fixed a bug when multiple PhreeqcRM instances were created in Fortran
40+
with debug compilation. Some debugging code caused a failure if the instances did
3441
not have the same number of cells.
3542

3643
-----------------

mytest/CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ set(TESTS
102102
diff_c
103103
dissolve_only
104104
dist_x
105+
dl_type_error
105106
donly
106107
DonnanBug
107108
dump_test

mytest/dl_type_error

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
DATABASE ../database/phreeqc.dat
2+
SELECTED_OUTPUT 101
3+
file dl_type_error.sel
4+
USER_PUNCH 101
5+
headings Mu SC
6+
start
7+
10 PUNCH STR_F$(MU, 20, 12)
8+
20 PUNCH STR_F$(SC, 20, 10)
9+
end
10+
RATES
11+
Decay
12+
-start
13+
40 SAVE moles
14+
-end
15+
SOLUTION
16+
-units mol/kgw
17+
pH 8
18+
Na 1
19+
P 1 charge
20+
Si 1e-10
21+
END
22+
SURFACE
23+
Hfo_w 0.1 1 600
24+
-donnan
25+
END
26+
KINETICS
27+
Decay
28+
-m 1
29+
-formula Si -1
30+
-steps 10
31+
-rk 1
32+
END
33+
USER_GRAPH 1
34+
-headings time Si Charge
35+
-axis_titles "Time, seconds" "Molality" "Charge balance, equivalents"
36+
-axis_scale y_axis auto auto auto auto
37+
-initial_solutions false
38+
-connect_simulations true
39+
-plot_concentration_vs x
40+
-start
41+
10 GRAPH_X TOTAL_TIME
42+
20 GRAPH_Y log10(TOT("Si"))
43+
30 GRAPH_SY CHARGE_BALANCE
44+
-end
45+
-active true
46+
END
47+
RUN_CELLS
48+
-cell 1
49+
END

0 commit comments

Comments
 (0)