pyEQL 1.4.0rc9__cp313-cp313-macosx_11_0_arm64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (491) hide show
  1. pyEQL/__init__.py +50 -0
  2. pyEQL/_phreeqc.cpython-313-darwin.so +0 -0
  3. pyEQL/activity_correction.py +879 -0
  4. pyEQL/database/geothermal.dat +5693 -0
  5. pyEQL/database/llnl.dat +19305 -0
  6. pyEQL/database/phreeqc_license.txt +54 -0
  7. pyEQL/database/pyeql_db.json +35607 -0
  8. pyEQL/engines.py +1153 -0
  9. pyEQL/equilibrium.py +227 -0
  10. pyEQL/functions.py +281 -0
  11. pyEQL/phreeqc/__init__.py +5 -0
  12. pyEQL/phreeqc/bindings.cpp +84 -0
  13. pyEQL/phreeqc/core.py +239 -0
  14. pyEQL/phreeqc/database/Amm.dat +1968 -0
  15. pyEQL/phreeqc/database/CMakeLists.txt +32 -0
  16. pyEQL/phreeqc/database/ColdChem.dat +267 -0
  17. pyEQL/phreeqc/database/Concrete_PHR.dat +158 -0
  18. pyEQL/phreeqc/database/Concrete_PZ.dat +195 -0
  19. pyEQL/phreeqc/database/Kinec.v2.dat +12039 -0
  20. pyEQL/phreeqc/database/Kinec_v3.dat +12159 -0
  21. pyEQL/phreeqc/database/Makefile.am +28 -0
  22. pyEQL/phreeqc/database/Makefile.in +530 -0
  23. pyEQL/phreeqc/database/PHREEQC_ThermoddemV1.10_15Dec2020.dat +12965 -0
  24. pyEQL/phreeqc/database/Tipping_Hurley.dat +4137 -0
  25. pyEQL/phreeqc/database/__init__.py +0 -0
  26. pyEQL/phreeqc/database/core10.dat +6824 -0
  27. pyEQL/phreeqc/database/frezchem.dat +634 -0
  28. pyEQL/phreeqc/database/iso.dat +7235 -0
  29. pyEQL/phreeqc/database/llnl.dat +19310 -0
  30. pyEQL/phreeqc/database/minteq.dat +5654 -0
  31. pyEQL/phreeqc/database/minteq.v4.dat +13212 -0
  32. pyEQL/phreeqc/database/phreeqc.dat +1972 -0
  33. pyEQL/phreeqc/database/phreeqc_rates.dat +3158 -0
  34. pyEQL/phreeqc/database/pitzer.dat +1044 -0
  35. pyEQL/phreeqc/database/sit.dat +14348 -0
  36. pyEQL/phreeqc/database/wateq4f.dat +4036 -0
  37. pyEQL/phreeqc/ext/README.md +10 -0
  38. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/CMakeLists.txt +476 -0
  39. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/INSTALL +302 -0
  40. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/IPhreeqc.rc +61 -0
  41. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/IPhreeqcConfig.cmake.in +4 -0
  42. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/Makefile.am +8 -0
  43. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/Makefile.in +816 -0
  44. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/aclocal.m4 +1217 -0
  45. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/CTestScript.cmake +167 -0
  46. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/CSelectedOutput.cpp.o +0 -0
  47. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/IPhreeqc.cpp.o +0 -0
  48. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/IPhreeqcLib.cpp.o +0 -0
  49. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/IPhreeqc_interface_F.cpp.o +0 -0
  50. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/Var.c.o +0 -0
  51. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/Dictionary.cpp.o +0 -0
  52. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/ExchComp.cxx.o +0 -0
  53. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/Exchange.cxx.o +0 -0
  54. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/GasComp.cxx.o +0 -0
  55. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/GasPhase.cxx.o +0 -0
  56. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/ISolution.cxx.o +0 -0
  57. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/ISolutionComp.cxx.o +0 -0
  58. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/KineticsComp.cxx.o +0 -0
  59. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/NameDouble.cxx.o +0 -0
  60. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/NumKeyword.cxx.o +0 -0
  61. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/PBasic.cpp.o +0 -0
  62. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/PHRQ_io_output.cpp.o +0 -0
  63. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/PPassemblage.cxx.o +0 -0
  64. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/PPassemblageComp.cxx.o +0 -0
  65. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/Phreeqc.cpp.o +0 -0
  66. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/PhreeqcKeywords/Keywords.cpp.o +0 -0
  67. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/Pressure.cxx.o +0 -0
  68. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/Reaction.cxx.o +0 -0
  69. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/ReadClass.cxx.o +0 -0
  70. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/SS.cxx.o +0 -0
  71. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/SSassemblage.cxx.o +0 -0
  72. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/SScomp.cxx.o +0 -0
  73. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/SelectedOutput.cpp.o +0 -0
  74. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/Serializer.cxx.o +0 -0
  75. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/Solution.cxx.o +0 -0
  76. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/SolutionIsotope.cxx.o +0 -0
  77. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/StorageBin.cxx.o +0 -0
  78. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/StorageBinList.cpp.o +0 -0
  79. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/Surface.cxx.o +0 -0
  80. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/SurfaceCharge.cxx.o +0 -0
  81. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/SurfaceComp.cxx.o +0 -0
  82. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/System.cxx.o +0 -0
  83. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/Temperature.cxx.o +0 -0
  84. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/Use.cpp.o +0 -0
  85. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/UserPunch.cpp.o +0 -0
  86. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/advection.cpp.o +0 -0
  87. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/basicsubs.cpp.o +0 -0
  88. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/cl1.cpp.o +0 -0
  89. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/common/PHRQ_base.cxx.o +0 -0
  90. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/common/PHRQ_io.cpp.o +0 -0
  91. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/common/Parser.cxx.o +0 -0
  92. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/common/Utils.cxx.o +0 -0
  93. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/cvdense.cpp.o +0 -0
  94. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/cvode.cpp.o +0 -0
  95. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/cxxKinetics.cxx.o +0 -0
  96. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/cxxMix.cxx.o +0 -0
  97. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/dense.cpp.o +0 -0
  98. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/dumper.cpp.o +0 -0
  99. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/gases.cpp.o +0 -0
  100. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/input.cpp.o +0 -0
  101. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/integrate.cpp.o +0 -0
  102. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/inverse.cpp.o +0 -0
  103. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/isotopes.cpp.o +0 -0
  104. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/kinetics.cpp.o +0 -0
  105. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/mainsubs.cpp.o +0 -0
  106. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/model.cpp.o +0 -0
  107. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/nvector.cpp.o +0 -0
  108. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/nvector_serial.cpp.o +0 -0
  109. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/parse.cpp.o +0 -0
  110. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/phqalloc.cpp.o +0 -0
  111. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/pitzer.cpp.o +0 -0
  112. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/pitzer_structures.cpp.o +0 -0
  113. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/prep.cpp.o +0 -0
  114. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/print.cpp.o +0 -0
  115. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/read.cpp.o +0 -0
  116. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/readtr.cpp.o +0 -0
  117. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/runner.cpp.o +0 -0
  118. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/sit.cpp.o +0 -0
  119. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/smalldense.cpp.o +0 -0
  120. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/spread.cpp.o +0 -0
  121. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/step.cpp.o +0 -0
  122. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/structures.cpp.o +0 -0
  123. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/sundialsmath.cpp.o +0 -0
  124. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/tally.cpp.o +0 -0
  125. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/tidy.cpp.o +0 -0
  126. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/transport.cpp.o +0 -0
  127. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/IPhreeqc.dir/src/phreeqcpp/utilities.cpp.o +0 -0
  128. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CTestTestfile.cmake +6 -0
  129. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/DartConfiguration.tcl +109 -0
  130. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/cmake_install.cmake +45 -0
  131. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/libIPhreeqc.a +0 -0
  132. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/config/ar-lib +270 -0
  133. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/config/compile +347 -0
  134. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/config/config.guess +1441 -0
  135. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/config/config.sub +1813 -0
  136. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/config/depcomp +791 -0
  137. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/config/install-sh +508 -0
  138. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/config/ltmain.sh +11156 -0
  139. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/config/missing +215 -0
  140. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/config/test-driver +148 -0
  141. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/configure +23867 -0
  142. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/configure.ac +136 -0
  143. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/database/Amm.dat +1968 -0
  144. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/database/CMakeLists.txt +32 -0
  145. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/database/ColdChem.dat +267 -0
  146. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/database/Concrete_PHR.dat +158 -0
  147. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/database/Concrete_PZ.dat +195 -0
  148. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/database/Kinec.v2.dat +12039 -0
  149. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/database/Kinec_v3.dat +12159 -0
  150. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/database/Makefile.am +28 -0
  151. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/database/Makefile.in +530 -0
  152. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/database/PHREEQC_ThermoddemV1.10_15Dec2020.dat +12965 -0
  153. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/database/Tipping_Hurley.dat +4137 -0
  154. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/database/core10.dat +6824 -0
  155. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/database/frezchem.dat +634 -0
  156. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/database/iso.dat +7235 -0
  157. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/database/llnl.dat +19310 -0
  158. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/database/minteq.dat +5654 -0
  159. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/database/minteq.v4.dat +13212 -0
  160. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/database/phreeqc.dat +1972 -0
  161. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/database/phreeqc_rates.dat +3158 -0
  162. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/database/pitzer.dat +1044 -0
  163. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/database/sit.dat +14348 -0
  164. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/database/wateq4f.dat +4036 -0
  165. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/CMakeLists.txt +35 -0
  166. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/IPhreeqc.pdf +0 -0
  167. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/Makefile.am +24 -0
  168. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/Makefile.in +545 -0
  169. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/NOTICE +51 -0
  170. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/Phreeqc_2_1999_manual.pdf +0 -0
  171. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/Phreeqc_3_2013_manual.pdf +0 -0
  172. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/README +428 -0
  173. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/RELEASE +7294 -0
  174. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/IPhreeqc_8h.html +5096 -0
  175. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/IPhreeqc_8h_source.html +389 -0
  176. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/IPhreeqc_8hpp.html +83 -0
  177. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/IPhreeqc_8hpp_source.html +478 -0
  178. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/Var_8h.html +318 -0
  179. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/Var_8h_source.html +200 -0
  180. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/bc_s.png +0 -0
  181. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/bdwn.png +0 -0
  182. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/classIPhreeqc.html +2274 -0
  183. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/classIPhreeqc.png +0 -0
  184. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/classIPhreeqcStop.html +69 -0
  185. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/classIPhreeqcStop.png +0 -0
  186. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/closed.png +0 -0
  187. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/dir_68267d1309a1af8e8297ef4c3efbcdba.html +68 -0
  188. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/doxygen.css +1440 -0
  189. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/doxygen.png +0 -0
  190. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/dynsections.js +97 -0
  191. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/ftv2blank.png +0 -0
  192. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/ftv2doc.png +0 -0
  193. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/ftv2folderclosed.png +0 -0
  194. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/ftv2folderopen.png +0 -0
  195. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/ftv2lastnode.png +0 -0
  196. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/ftv2link.png +0 -0
  197. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/ftv2mlastnode.png +0 -0
  198. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/ftv2mnode.png +0 -0
  199. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/ftv2node.png +0 -0
  200. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/ftv2plastnode.png +0 -0
  201. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/ftv2pnode.png +0 -0
  202. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/ftv2splitbar.png +0 -0
  203. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/ftv2vertline.png +0 -0
  204. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/index.html +58 -0
  205. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/jquery.js +31 -0
  206. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/nav_f.png +0 -0
  207. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/nav_g.png +0 -0
  208. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/nav_h.png +0 -0
  209. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/open.png +0 -0
  210. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/structVAR.html +143 -0
  211. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/sync_off.png +0 -0
  212. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/sync_on.png +0 -0
  213. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/tab_a.png +0 -0
  214. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/tab_b.png +0 -0
  215. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/tab_h.png +0 -0
  216. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/tab_s.png +0 -0
  217. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/tabs.css +60 -0
  218. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/phreeqc3.chm +0 -0
  219. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/CMakeLists.txt +11 -0
  220. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/Makefile.am +88 -0
  221. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/Makefile.in +696 -0
  222. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/c/CMakeLists.txt +1 -0
  223. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/c/advect/CMakeLists.txt +35 -0
  224. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/c/advect/CMakeLists.txt.in +21 -0
  225. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/c/advect/README.txt +44 -0
  226. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/c/advect/advect.c +101 -0
  227. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/c/advect/ic +17 -0
  228. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/c/advect/phreeqc.dat +1579 -0
  229. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/com/CMakeLists.txt +10 -0
  230. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/com/README.txt +3 -0
  231. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/com/excel/CMakeLists.txt +9 -0
  232. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/com/excel/phreeqc.dat +1582 -0
  233. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/com/excel/runphreeqc.xls +0 -0
  234. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/com/excel/withcallback.xls +0 -0
  235. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/com/python/CMakeLists.txt +11 -0
  236. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/com/python/Gypsum.py +52 -0
  237. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/com/python/parallel_advect.py +465 -0
  238. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/com/python/phreeqc.dat +1582 -0
  239. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/com/python/pitzer.dat +790 -0
  240. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/com/python/wateq4f.dat +3846 -0
  241. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/cpp/CMakeLists.txt +1 -0
  242. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/cpp/advect/CMakeLists.txt +35 -0
  243. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/cpp/advect/CMakeLists.txt.in +20 -0
  244. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/cpp/advect/README.txt +45 -0
  245. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/cpp/advect/advect.cpp +110 -0
  246. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/cpp/advect/ic +17 -0
  247. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/cpp/advect/phreeqc.dat +1579 -0
  248. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/fortran/CMakeLists.txt +1 -0
  249. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/fortran/advect/CMakeLists.txt +44 -0
  250. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/fortran/advect/CMakeLists.txt.in +24 -0
  251. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/fortran/advect/README.txt +45 -0
  252. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/fortran/advect/advect.F90 +102 -0
  253. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/fortran/advect/ic +17 -0
  254. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/fortran/advect/phreeqc.dat +1579 -0
  255. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/using-cmake/CMakeLists.txt +26 -0
  256. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/using-cmake/CMakeLists.txt.in +20 -0
  257. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/using-cmake/README.txt +37 -0
  258. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/using-cmake/ex2 +26 -0
  259. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/using-cmake/main.cpp +20 -0
  260. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/using-cmake/phreeqc.dat +1837 -0
  261. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/using-cmake/post-install.cmake.in +7 -0
  262. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/gtest/CMakeLists.txt +185 -0
  263. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/gtest/FileTest.cpp +171 -0
  264. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/gtest/FileTest.h +34 -0
  265. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/gtest/Makefile.am +18 -0
  266. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/gtest/Makefile.in +466 -0
  267. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/gtest/TestCVar.cpp +9 -0
  268. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/gtest/TestIPhreeqc.cpp +4901 -0
  269. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/gtest/TestIPhreeqcLib.cpp +4644 -0
  270. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/gtest/TestSelectedOutput.cpp +669 -0
  271. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/gtest/TestVar.cpp +10 -0
  272. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/gtest/conv_fail.in +11 -0
  273. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/gtest/dump +42 -0
  274. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/gtest/iso.dat +7231 -0
  275. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/gtest/kinn20140218 +349 -0
  276. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/gtest/missing_e.dat +1556 -0
  277. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/gtest/multi_punch +105 -0
  278. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/gtest/multi_punch_no_set +102 -0
  279. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/gtest/phreeqc.dat.90a6449 +1935 -0
  280. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/gtest/phreeqc.dat.old +1556 -0
  281. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/m4/libtool.m4 +8388 -0
  282. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/m4/ltoptions.m4 +437 -0
  283. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/m4/ltsugar.m4 +124 -0
  284. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/m4/ltversion.m4 +23 -0
  285. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/m4/lt~obsolete.m4 +99 -0
  286. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/resource.h +14 -0
  287. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/CSelectedOutput.cpp +401 -0
  288. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/CSelectedOutput.hxx +77 -0
  289. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/CVar.hxx +162 -0
  290. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/Debug.h +12 -0
  291. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/ErrorReporter.hxx +70 -0
  292. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/IPhreeqc.cpp +1889 -0
  293. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/IPhreeqc.f.inc +91 -0
  294. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/IPhreeqc.f90.inc +603 -0
  295. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/IPhreeqc.h +2182 -0
  296. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/IPhreeqc.hpp +1027 -0
  297. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/IPhreeqcCallbacks.h +19 -0
  298. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/IPhreeqcF.f +653 -0
  299. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/IPhreeqcLib.cpp +1098 -0
  300. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/IPhreeqc_interface.F90 +1283 -0
  301. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/IPhreeqc_interface_F.cpp +535 -0
  302. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/IPhreeqc_interface_F.h +162 -0
  303. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/Makefile.am +210 -0
  304. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/Makefile.in +1294 -0
  305. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/README.Fortran +17 -0
  306. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/Var.c +84 -0
  307. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/Var.h +152 -0
  308. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/Version.h +36 -0
  309. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/fimpl.h +282 -0
  310. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/fwrap.cpp +646 -0
  311. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/fwrap.h +163 -0
  312. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/fwrap1.cpp +24 -0
  313. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/fwrap2.cpp +24 -0
  314. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/fwrap3.cpp +24 -0
  315. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/fwrap4.cpp +24 -0
  316. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/fwrap5.cpp +24 -0
  317. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/fwrap6.cpp +25 -0
  318. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/fwrap7.cpp +25 -0
  319. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/fwrap8.cpp +24 -0
  320. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/ChartHandler.cpp +225 -0
  321. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/ChartHandler.h +59 -0
  322. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/ChartObject.cpp +1382 -0
  323. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/ChartObject.h +444 -0
  324. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/CurveObject.cpp +42 -0
  325. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/CurveObject.h +79 -0
  326. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/Dictionary.cpp +41 -0
  327. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/Dictionary.h +28 -0
  328. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/ExchComp.cxx +398 -0
  329. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/ExchComp.h +117 -0
  330. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/Exchange.cxx +466 -0
  331. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/Exchange.h +74 -0
  332. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/Form1.h +1184 -0
  333. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/Form1.resX +36 -0
  334. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/GasComp.cxx +265 -0
  335. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/GasComp.h +59 -0
  336. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/GasPhase.cxx +659 -0
  337. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/GasPhase.h +103 -0
  338. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/ISolution.cxx +40 -0
  339. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/ISolution.h +53 -0
  340. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/ISolutionComp.cxx +202 -0
  341. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/ISolutionComp.h +138 -0
  342. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/KineticsComp.cxx +318 -0
  343. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/KineticsComp.h +81 -0
  344. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/NA.h +1 -0
  345. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/NameDouble.cxx +537 -0
  346. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/NameDouble.h +66 -0
  347. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/NumKeyword.cxx +190 -0
  348. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/NumKeyword.h +67 -0
  349. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/PBasic.cpp +8350 -0
  350. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/PBasic.h +572 -0
  351. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/PHRQ_io_output.cpp +411 -0
  352. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/PPassemblage.cxx +375 -0
  353. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/PPassemblage.h +70 -0
  354. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/PPassemblageComp.cxx +441 -0
  355. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/PPassemblageComp.h +83 -0
  356. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/Phreeqc.cpp +2087 -0
  357. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/Phreeqc.h +2164 -0
  358. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/PhreeqcKeywords/Keywords.cpp +242 -0
  359. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/PhreeqcKeywords/Keywords.h +104 -0
  360. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/Pressure.cxx +417 -0
  361. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/Pressure.h +43 -0
  362. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/Reaction.cxx +284 -0
  363. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/Reaction.h +57 -0
  364. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/ReadClass.cxx +1150 -0
  365. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/SS.cxx +609 -0
  366. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/SS.h +128 -0
  367. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/SSassemblage.cxx +317 -0
  368. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/SSassemblage.h +59 -0
  369. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/SScomp.cxx +297 -0
  370. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/SScomp.h +66 -0
  371. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/SelectedOutput.cpp +115 -0
  372. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/SelectedOutput.h +209 -0
  373. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/Serializer.cxx +213 -0
  374. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/Serializer.h +42 -0
  375. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/Solution.cxx +1795 -0
  376. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/Solution.h +154 -0
  377. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/SolutionIsotope.cxx +333 -0
  378. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/SolutionIsotope.h +85 -0
  379. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/StorageBin.cxx +1507 -0
  380. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/StorageBin.h +141 -0
  381. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/StorageBinList.cpp +358 -0
  382. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/StorageBinList.h +81 -0
  383. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/Surface.cxx +837 -0
  384. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/Surface.h +108 -0
  385. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/SurfaceCharge.cxx +617 -0
  386. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/SurfaceCharge.h +137 -0
  387. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/SurfaceComp.cxx +509 -0
  388. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/SurfaceComp.h +70 -0
  389. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/System.cxx +103 -0
  390. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/System.h +89 -0
  391. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/Temperature.cxx +423 -0
  392. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/Temperature.h +42 -0
  393. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/Use.cpp +78 -0
  394. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/Use.h +159 -0
  395. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/UserPunch.cpp +32 -0
  396. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/UserPunch.h +39 -0
  397. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/ZedGraph.dll +0 -0
  398. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/advection.cpp +140 -0
  399. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/basicsubs.cpp +4333 -0
  400. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/cl1.cpp +881 -0
  401. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/common/PHRQ_base.cxx +117 -0
  402. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/common/PHRQ_base.h +48 -0
  403. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/common/PHRQ_exports.h +20 -0
  404. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/common/PHRQ_io.cpp +914 -0
  405. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/common/PHRQ_io.h +207 -0
  406. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/common/Parser.cxx +1331 -0
  407. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/common/Parser.h +310 -0
  408. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/common/Utils.cxx +263 -0
  409. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/common/Utils.h +29 -0
  410. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/common/phrqtype.h +18 -0
  411. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/cvdense.cpp +566 -0
  412. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/cvdense.h +267 -0
  413. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/cvode.cpp +3939 -0
  414. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/cvode.h +940 -0
  415. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/cxxKinetics.cxx +617 -0
  416. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/cxxKinetics.h +78 -0
  417. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/cxxMix.cxx +154 -0
  418. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/cxxMix.h +58 -0
  419. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/dense.cpp +175 -0
  420. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/dense.h +341 -0
  421. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/dumper.cpp +277 -0
  422. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/dumper.h +60 -0
  423. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/gases.cpp +748 -0
  424. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/global_structures.h +1672 -0
  425. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/input.cpp +133 -0
  426. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/integrate.cpp +1219 -0
  427. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/inverse.cpp +5135 -0
  428. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/isotopes.cpp +1813 -0
  429. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/kinetics.cpp +3180 -0
  430. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/mainsubs.cpp +2320 -0
  431. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/model.cpp +5843 -0
  432. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/nvector.cpp +272 -0
  433. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/nvector.h +485 -0
  434. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/nvector_serial.cpp +1032 -0
  435. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/nvector_serial.h +369 -0
  436. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/parse.cpp +1044 -0
  437. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/phqalloc.cpp +316 -0
  438. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/phqalloc.h +47 -0
  439. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/pitzer.cpp +2709 -0
  440. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/pitzer_structures.cpp +225 -0
  441. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/prep.cpp +6267 -0
  442. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/print.cpp +3673 -0
  443. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/read.cpp +10245 -0
  444. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/readtr.cpp +1495 -0
  445. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/runner.cpp +158 -0
  446. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/runner.h +33 -0
  447. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/sit.cpp +1684 -0
  448. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/smalldense.cpp +324 -0
  449. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/smalldense.h +261 -0
  450. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/spread.cpp +1309 -0
  451. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/step.cpp +1566 -0
  452. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/structures.cpp +3381 -0
  453. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/sundialsmath.cpp +133 -0
  454. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/sundialsmath.h +162 -0
  455. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/sundialstypes.h +183 -0
  456. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/tally.cpp +1288 -0
  457. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/tidy.cpp +5600 -0
  458. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/transport.cpp +6403 -0
  459. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/utilities.cpp +1339 -0
  460. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/thread.h +64 -0
  461. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/tests/CMakeLists.txt +133 -0
  462. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/tests/Makefile.am +45 -0
  463. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/tests/Makefile.in +1128 -0
  464. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/tests/ex2.in +26 -0
  465. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/tests/main.f90 +31 -0
  466. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/tests/main77.f +6 -0
  467. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/tests/main_fortran.cxx +8 -0
  468. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/tests/phreeqc.dat.in +1556 -0
  469. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/tests/test_c.c +148 -0
  470. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/tests/test_cxx.cxx +152 -0
  471. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/tests/test_f90.F90 +328 -0
  472. pyEQL/phreeqc/iphreeqc_wrapper.cpp +75 -0
  473. pyEQL/phreeqc/solution.py +74 -0
  474. pyEQL/phreeqc/var.py +50 -0
  475. pyEQL/presets/Ringers lactate.yaml +20 -0
  476. pyEQL/presets/__init__.py +17 -0
  477. pyEQL/presets/normal saline.yaml +17 -0
  478. pyEQL/presets/rainwater.yaml +17 -0
  479. pyEQL/presets/seawater.yaml +29 -0
  480. pyEQL/presets/urine.yaml +26 -0
  481. pyEQL/presets/wastewater.yaml +21 -0
  482. pyEQL/py.typed +0 -0
  483. pyEQL/salt_ion_match.py +112 -0
  484. pyEQL/solute.py +163 -0
  485. pyEQL/solution.py +2714 -0
  486. pyEQL/utils.py +237 -0
  487. pyeql-1.4.0rc9.dist-info/METADATA +130 -0
  488. pyeql-1.4.0rc9.dist-info/RECORD +491 -0
  489. pyeql-1.4.0rc9.dist-info/WHEEL +6 -0
  490. pyeql-1.4.0rc9.dist-info/licenses/AUTHORS.md +21 -0
  491. pyeql-1.4.0rc9.dist-info/licenses/LICENSE.txt +20 -0
@@ -0,0 +1,1098 @@
1
+ #include <cassert>
2
+ #include <iostream>
3
+ #include <map>
4
+
5
+ #include "IPhreeqc.h"
6
+ #include "IPhreeqc.hpp"
7
+ #include "thread.h"
8
+
9
+ class IPhreeqcLib
10
+ {
11
+ public:
12
+ //static void CleanupIPhreeqcInstances(void);
13
+ static int CreateIPhreeqc(void);
14
+ static IPQ_RESULT DestroyIPhreeqc(int n);
15
+ static IPhreeqc* GetInstance(int n);
16
+ };
17
+
18
+ IPQ_RESULT
19
+ AccumulateLine(int id, const char *line)
20
+ {
21
+ IPhreeqc* IPhreeqcPtr = IPhreeqcLib::GetInstance(id);
22
+ if (IPhreeqcPtr)
23
+ {
24
+ switch (IPhreeqcPtr->AccumulateLine(line))
25
+ {
26
+ case VR_OK:
27
+ return IPQ_OK;
28
+ case VR_OUTOFMEMORY:
29
+ return IPQ_OUTOFMEMORY;
30
+ default:
31
+ assert(false);
32
+ }
33
+ }
34
+ return IPQ_BADINSTANCE;
35
+ }
36
+
37
+ int
38
+ AddError(int id, const char* error_msg)
39
+ {
40
+ IPhreeqc* IPhreeqcPtr = IPhreeqcLib::GetInstance(id);
41
+ if (IPhreeqcPtr)
42
+ {
43
+ return (int)IPhreeqcPtr->AddError(error_msg);
44
+ }
45
+ return IPQ_BADINSTANCE;
46
+ }
47
+
48
+ int
49
+ AddWarning(int id, const char* warn_msg)
50
+ {
51
+ IPhreeqc* IPhreeqcPtr = IPhreeqcLib::GetInstance(id);
52
+ if (IPhreeqcPtr)
53
+ {
54
+ return (int)IPhreeqcPtr->AddWarning(warn_msg);
55
+ }
56
+ return IPQ_BADINSTANCE;
57
+ }
58
+
59
+ IPQ_RESULT
60
+ ClearAccumulatedLines(int id)
61
+ {
62
+ IPhreeqc* IPhreeqcPtr = IPhreeqcLib::GetInstance(id);
63
+ if (IPhreeqcPtr)
64
+ {
65
+ IPhreeqcPtr->ClearAccumulatedLines();
66
+ return IPQ_OK;
67
+ }
68
+ return IPQ_BADINSTANCE;
69
+ }
70
+
71
+ int
72
+ CreateIPhreeqc(void)
73
+ {
74
+ return IPhreeqcLib::CreateIPhreeqc();
75
+ }
76
+
77
+ IPQ_RESULT
78
+ DestroyIPhreeqc(int id)
79
+ {
80
+ return IPhreeqcLib::DestroyIPhreeqc(id);
81
+ }
82
+
83
+ // TODO Maybe GetAccumulatedLines
84
+
85
+ const char*
86
+ GetComponent(int id, int n)
87
+ {
88
+ static const char err_msg[] = "GetComponent: Invalid instance id.\n";
89
+
90
+ IPhreeqc* IPhreeqcPtr = IPhreeqcLib::GetInstance(id);
91
+ if (IPhreeqcPtr)
92
+ {
93
+ return IPhreeqcPtr->GetComponent(n);
94
+ }
95
+ return err_msg;
96
+ }
97
+
98
+ int
99
+ GetComponentCount(int id)
100
+ {
101
+ IPhreeqc* IPhreeqcPtr = IPhreeqcLib::GetInstance(id);
102
+ if (IPhreeqcPtr)
103
+ {
104
+ return (int)IPhreeqcPtr->GetComponentCount();
105
+ }
106
+ return IPQ_BADINSTANCE;
107
+ }
108
+
109
+ int
110
+ GetCurrentSelectedOutputUserNumber(int id)
111
+ {
112
+ IPhreeqc* IPhreeqcPtr = IPhreeqcLib::GetInstance(id);
113
+ if (IPhreeqcPtr)
114
+ {
115
+ int n = IPhreeqcPtr->GetCurrentSelectedOutputUserNumber();
116
+ switch (n)
117
+ {
118
+ case VR_INVALIDARG:
119
+ return IPQ_INVALIDARG;
120
+ }
121
+ return n;
122
+ }
123
+ return IPQ_BADINSTANCE;
124
+ }
125
+
126
+ const char*
127
+ GetDumpFileName(int id)
128
+ {
129
+ static const char empty[] = "";
130
+ IPhreeqc* IPhreeqcPtr = IPhreeqcLib::GetInstance(id);
131
+ if (IPhreeqcPtr)
132
+ {
133
+ return IPhreeqcPtr->GetDumpFileName();
134
+ }
135
+ return empty;
136
+ }
137
+
138
+ int
139
+ GetDumpFileOn(int id)
140
+ {
141
+ IPhreeqc* IPhreeqcPtr = IPhreeqcLib::GetInstance(id);
142
+ if (IPhreeqcPtr)
143
+ {
144
+ if (IPhreeqcPtr->GetDumpFileOn())
145
+ {
146
+ return 1;
147
+ }
148
+ else
149
+ {
150
+ return 0;
151
+ }
152
+ }
153
+ return IPQ_BADINSTANCE;
154
+ }
155
+
156
+ const char*
157
+ GetDumpString(int id)
158
+ {
159
+ static const char empty[] = "";
160
+ IPhreeqc* IPhreeqcPtr = IPhreeqcLib::GetInstance(id);
161
+ if (IPhreeqcPtr)
162
+ {
163
+ return IPhreeqcPtr->GetDumpString();
164
+ }
165
+ return empty;
166
+ }
167
+
168
+ const char*
169
+ GetDumpStringLine(int id, int n)
170
+ {
171
+ static const char err_msg[] = "GetDumpStringLine: Invalid instance id.\n";
172
+ IPhreeqc* IPhreeqcPtr = IPhreeqcLib::GetInstance(id);
173
+ if (IPhreeqcPtr)
174
+ {
175
+ return IPhreeqcPtr->GetDumpStringLine(n);
176
+ }
177
+ return err_msg;
178
+ }
179
+
180
+ int
181
+ GetDumpStringLineCount(int id)
182
+ {
183
+ IPhreeqc* IPhreeqcPtr = IPhreeqcLib::GetInstance(id);
184
+ if (IPhreeqcPtr)
185
+ {
186
+ return IPhreeqcPtr->GetDumpStringLineCount();
187
+ }
188
+ return 0;
189
+ }
190
+
191
+ int
192
+ GetDumpStringOn(int id)
193
+ {
194
+ IPhreeqc* IPhreeqcPtr = IPhreeqcLib::GetInstance(id);
195
+ if (IPhreeqcPtr)
196
+ {
197
+ if (IPhreeqcPtr->GetDumpStringOn())
198
+ {
199
+ return 1;
200
+ }
201
+ else
202
+ {
203
+ return 0;
204
+ }
205
+ }
206
+ return IPQ_BADINSTANCE;
207
+ }
208
+
209
+ const char*
210
+ GetErrorFileName(int id)
211
+ {
212
+ static const char empty[] = "";
213
+ IPhreeqc* IPhreeqcPtr = IPhreeqcLib::GetInstance(id);
214
+ if (IPhreeqcPtr)
215
+ {
216
+ return IPhreeqcPtr->GetErrorFileName();
217
+ }
218
+ return empty;
219
+ }
220
+
221
+ int
222
+ GetErrorFileOn(int id)
223
+ {
224
+ IPhreeqc* IPhreeqcPtr = IPhreeqcLib::GetInstance(id);
225
+ if (IPhreeqcPtr)
226
+ {
227
+ if (IPhreeqcPtr->GetErrorFileOn())
228
+ {
229
+ return 1;
230
+ }
231
+ else
232
+ {
233
+ return 0;
234
+ }
235
+ }
236
+ return IPQ_BADINSTANCE;
237
+ }
238
+
239
+ int
240
+ GetErrorOn(int id)
241
+ {
242
+ IPhreeqc* IPhreeqcPtr = IPhreeqcLib::GetInstance(id);
243
+ if (IPhreeqcPtr)
244
+ {
245
+ if (IPhreeqcPtr->GetErrorOn())
246
+ {
247
+ return 1;
248
+ }
249
+ else
250
+ {
251
+ return 0;
252
+ }
253
+ }
254
+ return IPQ_BADINSTANCE;
255
+ }
256
+
257
+ const char*
258
+ GetErrorString(int id)
259
+ {
260
+ static const char err_msg[] = "GetErrorString: Invalid instance id.\n";
261
+ IPhreeqc* IPhreeqcPtr = IPhreeqcLib::GetInstance(id);
262
+ if (IPhreeqcPtr)
263
+ {
264
+ return IPhreeqcPtr->GetErrorString();
265
+ }
266
+ return err_msg;
267
+ }
268
+
269
+ const char*
270
+ GetErrorStringLine(int id, int n)
271
+ {
272
+ static const char err_msg[] = "GetErrorStringLine: Invalid instance id.\n";
273
+ IPhreeqc* IPhreeqcPtr = IPhreeqcLib::GetInstance(id);
274
+ if (IPhreeqcPtr)
275
+ {
276
+ return IPhreeqcPtr->GetErrorStringLine(n);
277
+ }
278
+ return err_msg;
279
+ }
280
+
281
+ int
282
+ GetErrorStringLineCount(int id)
283
+ {
284
+ IPhreeqc* IPhreeqcPtr = IPhreeqcLib::GetInstance(id);
285
+ if (IPhreeqcPtr)
286
+ {
287
+ return (int)IPhreeqcPtr->GetErrorStringLineCount();
288
+ }
289
+ return IPQ_BADINSTANCE;
290
+ }
291
+
292
+ int
293
+ GetErrorStringOn(int id)
294
+ {
295
+ IPhreeqc* IPhreeqcPtr = IPhreeqcLib::GetInstance(id);
296
+ if (IPhreeqcPtr)
297
+ {
298
+ if (IPhreeqcPtr->GetErrorStringOn())
299
+ {
300
+ return 1;
301
+ }
302
+ else
303
+ {
304
+ return 0;
305
+ }
306
+ }
307
+ return IPQ_BADINSTANCE;
308
+ }
309
+
310
+ const char*
311
+ GetLogFileName(int id)
312
+ {
313
+ static const char empty[] = "";
314
+ IPhreeqc* IPhreeqcPtr = IPhreeqcLib::GetInstance(id);
315
+ if (IPhreeqcPtr)
316
+ {
317
+ return IPhreeqcPtr->GetLogFileName();
318
+ }
319
+ return empty;
320
+ }
321
+
322
+ int
323
+ GetLogFileOn(int id)
324
+ {
325
+ IPhreeqc* IPhreeqcPtr = IPhreeqcLib::GetInstance(id);
326
+ if (IPhreeqcPtr)
327
+ {
328
+ if (IPhreeqcPtr->GetLogFileOn())
329
+ {
330
+ return 1;
331
+ }
332
+ else
333
+ {
334
+ return 0;
335
+ }
336
+ }
337
+ return IPQ_BADINSTANCE;
338
+ }
339
+
340
+ const char*
341
+ GetLogString(int id)
342
+ {
343
+ static const char empty[] = "";
344
+ IPhreeqc* IPhreeqcPtr = IPhreeqcLib::GetInstance(id);
345
+ if (IPhreeqcPtr)
346
+ {
347
+ return IPhreeqcPtr->GetLogString();
348
+ }
349
+ return empty;
350
+ }
351
+
352
+ const char*
353
+ GetLogStringLine(int id, int n)
354
+ {
355
+ static const char err_msg[] = "GetLogStringLine: Invalid instance id.\n";
356
+ IPhreeqc* IPhreeqcPtr = IPhreeqcLib::GetInstance(id);
357
+ if (IPhreeqcPtr)
358
+ {
359
+ return IPhreeqcPtr->GetLogStringLine(n);
360
+ }
361
+ return err_msg;
362
+ }
363
+
364
+ int
365
+ GetLogStringLineCount(int id)
366
+ {
367
+ IPhreeqc* IPhreeqcPtr = IPhreeqcLib::GetInstance(id);
368
+ if (IPhreeqcPtr)
369
+ {
370
+ return IPhreeqcPtr->GetLogStringLineCount();
371
+ }
372
+ return 0;
373
+ }
374
+
375
+ int
376
+ GetLogStringOn(int id)
377
+ {
378
+ IPhreeqc* IPhreeqcPtr = IPhreeqcLib::GetInstance(id);
379
+ if (IPhreeqcPtr)
380
+ {
381
+ if (IPhreeqcPtr->GetLogStringOn())
382
+ {
383
+ return 1;
384
+ }
385
+ else
386
+ {
387
+ return 0;
388
+ }
389
+ }
390
+ return IPQ_BADINSTANCE;
391
+ }
392
+
393
+ int
394
+ GetNthSelectedOutputUserNumber(int id, int n)
395
+ {
396
+ IPhreeqc* IPhreeqcPtr = IPhreeqcLib::GetInstance(id);
397
+ if (IPhreeqcPtr)
398
+ {
399
+ int nth = IPhreeqcPtr->GetNthSelectedOutputUserNumber(n);
400
+ switch (nth)
401
+ {
402
+ case VR_INVALIDARG: return IPQ_INVALIDARG;
403
+ }
404
+ return nth;
405
+ }
406
+ return IPQ_BADINSTANCE;
407
+ }
408
+
409
+ const char*
410
+ GetOutputFileName(int id)
411
+ {
412
+ static const char empty[] = "";
413
+ IPhreeqc* IPhreeqcPtr = IPhreeqcLib::GetInstance(id);
414
+ if (IPhreeqcPtr)
415
+ {
416
+ return IPhreeqcPtr->GetOutputFileName();
417
+ }
418
+ return empty;
419
+ }
420
+
421
+ int
422
+ GetOutputFileOn(int id)
423
+ {
424
+ IPhreeqc* IPhreeqcPtr = IPhreeqcLib::GetInstance(id);
425
+ if (IPhreeqcPtr)
426
+ {
427
+ if (IPhreeqcPtr->GetOutputFileOn())
428
+ {
429
+ return 1;
430
+ }
431
+ else
432
+ {
433
+ return 0;
434
+ }
435
+ }
436
+ return IPQ_BADINSTANCE;
437
+ }
438
+
439
+ const char*
440
+ GetOutputString(int id)
441
+ {
442
+ static const char empty[] = "";
443
+ IPhreeqc* IPhreeqcPtr = IPhreeqcLib::GetInstance(id);
444
+ if (IPhreeqcPtr)
445
+ {
446
+ return IPhreeqcPtr->GetOutputString();
447
+ }
448
+ return empty;
449
+ }
450
+
451
+ const char*
452
+ GetOutputStringLine(int id, int n)
453
+ {
454
+ static const char err_msg[] = "GetOutputStringLine: Invalid instance id.\n";
455
+ IPhreeqc* IPhreeqcPtr = IPhreeqcLib::GetInstance(id);
456
+ if (IPhreeqcPtr)
457
+ {
458
+ return IPhreeqcPtr->GetOutputStringLine(n);
459
+ }
460
+ return err_msg;
461
+ }
462
+
463
+ int
464
+ GetOutputStringLineCount(int id)
465
+ {
466
+ IPhreeqc* IPhreeqcPtr = IPhreeqcLib::GetInstance(id);
467
+ if (IPhreeqcPtr)
468
+ {
469
+ return IPhreeqcPtr->GetOutputStringLineCount();
470
+ }
471
+ return 0;
472
+ }
473
+
474
+ int
475
+ GetOutputStringOn(int id)
476
+ {
477
+ IPhreeqc* IPhreeqcPtr = IPhreeqcLib::GetInstance(id);
478
+ if (IPhreeqcPtr)
479
+ {
480
+ if (IPhreeqcPtr->GetOutputStringOn())
481
+ {
482
+ return 1;
483
+ }
484
+ else
485
+ {
486
+ return 0;
487
+ }
488
+ }
489
+ return IPQ_BADINSTANCE;
490
+ }
491
+
492
+ int
493
+ GetSelectedOutputColumnCount(int id)
494
+ {
495
+ IPhreeqc* IPhreeqcPtr = IPhreeqcLib::GetInstance(id);
496
+ if (IPhreeqcPtr)
497
+ {
498
+ return IPhreeqcPtr->GetSelectedOutputColumnCount();
499
+ }
500
+ return IPQ_BADINSTANCE;
501
+ }
502
+
503
+ int
504
+ GetSelectedOutputCount(int id)
505
+ {
506
+ IPhreeqc* IPhreeqcPtr = IPhreeqcLib::GetInstance(id);
507
+ if (IPhreeqcPtr)
508
+ {
509
+ return IPhreeqcPtr->GetSelectedOutputCount();
510
+ }
511
+ return IPQ_BADINSTANCE;
512
+ }
513
+
514
+ const char*
515
+ GetSelectedOutputFileName(int id)
516
+ {
517
+ static const char empty[] = "";
518
+ IPhreeqc* IPhreeqcPtr = IPhreeqcLib::GetInstance(id);
519
+ if (IPhreeqcPtr)
520
+ {
521
+ return IPhreeqcPtr->GetSelectedOutputFileName();
522
+ }
523
+ return empty;
524
+ }
525
+
526
+ int
527
+ GetSelectedOutputFileOn(int id)
528
+ {
529
+ IPhreeqc* IPhreeqcPtr = IPhreeqcLib::GetInstance(id);
530
+ if (IPhreeqcPtr)
531
+ {
532
+ if (IPhreeqcPtr->GetSelectedOutputFileOn())
533
+ {
534
+ return 1;
535
+ }
536
+ else
537
+ {
538
+ return 0;
539
+ }
540
+ }
541
+ return IPQ_BADINSTANCE;
542
+ }
543
+
544
+ int
545
+ GetSelectedOutputRowCount(int id)
546
+ {
547
+ IPhreeqc* IPhreeqcPtr = IPhreeqcLib::GetInstance(id);
548
+ if (IPhreeqcPtr)
549
+ {
550
+ return IPhreeqcPtr->GetSelectedOutputRowCount();
551
+ }
552
+ return IPQ_BADINSTANCE;
553
+ }
554
+
555
+ const char*
556
+ GetSelectedOutputString(int id)
557
+ {
558
+ static const char empty[] = "";
559
+ IPhreeqc* IPhreeqcPtr = IPhreeqcLib::GetInstance(id);
560
+ if (IPhreeqcPtr)
561
+ {
562
+ return IPhreeqcPtr->GetSelectedOutputString();
563
+ }
564
+ return empty;
565
+ }
566
+
567
+ const char*
568
+ GetSelectedOutputStringLine(int id, int n)
569
+ {
570
+ static const char err_msg[] = "GetSelectedOutputStringLine: Invalid instance id.\n";
571
+ IPhreeqc* IPhreeqcPtr = IPhreeqcLib::GetInstance(id);
572
+ if (IPhreeqcPtr)
573
+ {
574
+ return IPhreeqcPtr->GetSelectedOutputStringLine(n);
575
+ }
576
+ return err_msg;
577
+ }
578
+
579
+ int
580
+ GetSelectedOutputStringLineCount(int id)
581
+ {
582
+ IPhreeqc* IPhreeqcPtr = IPhreeqcLib::GetInstance(id);
583
+ if (IPhreeqcPtr)
584
+ {
585
+ return IPhreeqcPtr->GetSelectedOutputStringLineCount();
586
+ }
587
+ return 0;
588
+ }
589
+
590
+ int
591
+ GetSelectedOutputStringOn(int id)
592
+ {
593
+ IPhreeqc* IPhreeqcPtr = IPhreeqcLib::GetInstance(id);
594
+ if (IPhreeqcPtr)
595
+ {
596
+ if (IPhreeqcPtr->GetSelectedOutputStringOn())
597
+ {
598
+ return 1;
599
+ }
600
+ else
601
+ {
602
+ return 0;
603
+ }
604
+ }
605
+ return IPQ_BADINSTANCE;
606
+ }
607
+
608
+ IPQ_RESULT
609
+ GetSelectedOutputValue(int id, int row, int col, VAR* pVAR)
610
+ {
611
+ IPhreeqc* IPhreeqcPtr = IPhreeqcLib::GetInstance(id);
612
+ if (IPhreeqcPtr)
613
+ {
614
+ switch (IPhreeqcPtr->GetSelectedOutputValue(row, col, pVAR))
615
+ {
616
+ case VR_OK: return IPQ_OK;
617
+ case VR_OUTOFMEMORY: return IPQ_OUTOFMEMORY;
618
+ case VR_BADVARTYPE: return IPQ_BADVARTYPE;
619
+ case VR_INVALIDARG: return IPQ_INVALIDARG;
620
+ case VR_INVALIDROW: return IPQ_INVALIDROW;
621
+ case VR_INVALIDCOL: return IPQ_INVALIDCOL;
622
+ default:
623
+ assert(false);
624
+ }
625
+ }
626
+ return IPQ_BADINSTANCE;
627
+ }
628
+
629
+ IPQ_RESULT
630
+ GetSelectedOutputValue2(int id, int row, int col, int *vtype, double* dvalue, char* svalue, unsigned int svalue_length)
631
+ {
632
+ IPhreeqc* IPhreeqcPtr = IPhreeqcLib::GetInstance(id);
633
+ if (IPhreeqcPtr)
634
+ {
635
+ switch (IPhreeqcPtr->GetSelectedOutputValue2(row, col, vtype, dvalue, svalue, svalue_length))
636
+ {
637
+ case VR_OK: return IPQ_OK;
638
+ case VR_OUTOFMEMORY: return IPQ_OUTOFMEMORY;
639
+ case VR_BADVARTYPE: return IPQ_BADVARTYPE;
640
+ case VR_INVALIDARG: return IPQ_INVALIDARG;
641
+ case VR_INVALIDROW: return IPQ_INVALIDROW;
642
+ case VR_INVALIDCOL: return IPQ_INVALIDCOL;
643
+ default:
644
+ assert(false);
645
+ }
646
+ }
647
+ return IPQ_BADINSTANCE;
648
+ }
649
+
650
+ const char*
651
+ GetVersionString(void)
652
+ {
653
+ return IPhreeqc::GetVersionString();
654
+ }
655
+
656
+ const char*
657
+ GetWarningString(int id)
658
+ {
659
+ static const char err_msg[] = "GetWarningString: Invalid instance id.\n";
660
+ IPhreeqc* IPhreeqcPtr = IPhreeqcLib::GetInstance(id);
661
+ if (IPhreeqcPtr)
662
+ {
663
+ return IPhreeqcPtr->GetWarningString();
664
+ }
665
+ return err_msg;
666
+ }
667
+
668
+ const char*
669
+ GetWarningStringLine(int id, int n)
670
+ {
671
+ static const char err_msg[] = "GetWarningStringLine: Invalid instance id.\n";
672
+ IPhreeqc* IPhreeqcPtr = IPhreeqcLib::GetInstance(id);
673
+ if (IPhreeqcPtr)
674
+ {
675
+ return IPhreeqcPtr->GetWarningStringLine(n);
676
+ }
677
+ return err_msg;
678
+ }
679
+
680
+ int
681
+ GetWarningStringLineCount(int id)
682
+ {
683
+ IPhreeqc* IPhreeqcPtr = IPhreeqcLib::GetInstance(id);
684
+ if (IPhreeqcPtr)
685
+ {
686
+ return (int)IPhreeqcPtr->GetWarningStringLineCount();
687
+ }
688
+ return IPQ_BADINSTANCE;
689
+ }
690
+
691
+ int
692
+ LoadDatabase(int id, const char* filename)
693
+ {
694
+ IPhreeqc* IPhreeqcPtr = IPhreeqcLib::GetInstance(id);
695
+ if (IPhreeqcPtr)
696
+ {
697
+ return IPhreeqcPtr->LoadDatabase(filename);
698
+ }
699
+ return IPQ_BADINSTANCE;
700
+ }
701
+
702
+ int
703
+ LoadDatabaseString(int id, const char* input)
704
+ {
705
+ IPhreeqc* IPhreeqcPtr = IPhreeqcLib::GetInstance(id);
706
+ if (IPhreeqcPtr)
707
+ {
708
+ return IPhreeqcPtr->LoadDatabaseString(input);
709
+ }
710
+ return IPQ_BADINSTANCE;
711
+ }
712
+
713
+ void
714
+ OutputAccumulatedLines(int id)
715
+ {
716
+ static const char err_msg[] = "OutputAccumulatedLines: Invalid instance id.\n";
717
+ IPhreeqc* IPhreeqcPtr = IPhreeqcLib::GetInstance(id);
718
+ if (IPhreeqcPtr)
719
+ {
720
+ IPhreeqcPtr->OutputAccumulatedLines();
721
+ return;
722
+ }
723
+ #if !defined(R_SO)
724
+ std::cout << err_msg << std::endl;
725
+ #endif
726
+ }
727
+
728
+ void
729
+ OutputErrorString(int id)
730
+ {
731
+ static const char err_msg[] = "OutputErrorString: Invalid instance id.\n";
732
+ IPhreeqc* IPhreeqcPtr = IPhreeqcLib::GetInstance(id);
733
+ if (IPhreeqcPtr)
734
+ {
735
+ IPhreeqcPtr->OutputErrorString();
736
+ return;
737
+ }
738
+ #if !defined(R_SO)
739
+ std::cout << err_msg << std::endl;
740
+ #endif
741
+ }
742
+
743
+ void
744
+ OutputWarningString(int id)
745
+ {
746
+ static const char err_msg[] = "OutputWarningString: Invalid instance id.\n";
747
+ IPhreeqc* IPhreeqcPtr = IPhreeqcLib::GetInstance(id);
748
+ if (IPhreeqcPtr)
749
+ {
750
+ IPhreeqcPtr->OutputWarningString();
751
+ return;
752
+ }
753
+ #if !defined(R_SO)
754
+ std::cout << err_msg << std::endl;
755
+ #endif
756
+ }
757
+
758
+ int
759
+ RunAccumulated(int id)
760
+ {
761
+ IPhreeqc* IPhreeqcPtr = IPhreeqcLib::GetInstance(id);
762
+ if (IPhreeqcPtr)
763
+ {
764
+ return IPhreeqcPtr->RunAccumulated();
765
+ }
766
+ return IPQ_BADINSTANCE;
767
+ }
768
+
769
+ int
770
+ RunFile(int id, const char* filename)
771
+ {
772
+ IPhreeqc* IPhreeqcPtr = IPhreeqcLib::GetInstance(id);
773
+ if (IPhreeqcPtr)
774
+ {
775
+ return IPhreeqcPtr->RunFile(filename);
776
+ }
777
+ return IPQ_BADINSTANCE;
778
+ }
779
+
780
+ int
781
+ RunString(int id, const char* input)
782
+ {
783
+ IPhreeqc* IPhreeqcPtr = IPhreeqcLib::GetInstance(id);
784
+ if (IPhreeqcPtr)
785
+ {
786
+ return IPhreeqcPtr->RunString(input);
787
+ }
788
+ return IPQ_BADINSTANCE;
789
+ }
790
+
791
+ IPQ_RESULT
792
+ SetBasicCallback(int id, double (*fcn)(double x1, double x2, const char *str, void *cookie), void *cookie1)
793
+ {
794
+ IPhreeqc* IPhreeqcPtr = IPhreeqcLib::GetInstance(id);
795
+ if (IPhreeqcPtr)
796
+ {
797
+ IPhreeqcPtr->SetBasicCallback(fcn, cookie1);
798
+ return IPQ_OK;
799
+ }
800
+ return IPQ_BADINSTANCE;
801
+ }
802
+ #if !defined(R_SO)
803
+ #ifdef IPHREEQC_NO_FORTRAN_MODULE
804
+ IPQ_RESULT
805
+ SetBasicFortranCallback(int id, double (*fcn)(double *x1, double *x2, const char *str, size_t l))
806
+ {
807
+ IPhreeqc* IPhreeqcPtr = IPhreeqcLib::GetInstance(id);
808
+ if (IPhreeqcPtr)
809
+ {
810
+ IPhreeqcPtr->SetBasicFortranCallback(fcn);
811
+ return IPQ_OK;
812
+ }
813
+ return IPQ_BADINSTANCE;
814
+ }
815
+ #else
816
+ IPQ_RESULT
817
+ SetBasicFortranCallback(int id, double (*fcn)(double *x1, double *x2, const char *str, int l))
818
+ {
819
+ IPhreeqc* IPhreeqcPtr = IPhreeqcLib::GetInstance(id);
820
+ if (IPhreeqcPtr)
821
+ {
822
+ IPhreeqcPtr->SetBasicFortranCallback(fcn);
823
+ return IPQ_OK;
824
+ }
825
+ return IPQ_BADINSTANCE;
826
+ }
827
+ #endif /* IPHREEQC_NO_FORTRAN_MODULE */
828
+ #endif /* !defined(R_SO) */
829
+ IPQ_RESULT
830
+ SetCurrentSelectedOutputUserNumber(int id, int n)
831
+ {
832
+ IPhreeqc* IPhreeqcPtr = IPhreeqcLib::GetInstance(id);
833
+ if (IPhreeqcPtr)
834
+ {
835
+ switch (IPhreeqcPtr->SetCurrentSelectedOutputUserNumber(n))
836
+ {
837
+ case VR_INVALIDARG: return IPQ_INVALIDARG;
838
+ case VR_OK: return IPQ_OK;
839
+ default: assert(false);
840
+ }
841
+ }
842
+ return IPQ_BADINSTANCE;
843
+ }
844
+
845
+ IPQ_RESULT
846
+ SetDumpFileName(int id, const char* filename)
847
+ {
848
+ IPhreeqc* IPhreeqcPtr = IPhreeqcLib::GetInstance(id);
849
+ if (IPhreeqcPtr)
850
+ {
851
+ IPhreeqcPtr->SetDumpFileName(filename);
852
+ return IPQ_OK;
853
+ }
854
+ return IPQ_BADINSTANCE;
855
+ }
856
+
857
+ IPQ_RESULT
858
+ SetDumpFileOn(int id, int value)
859
+ {
860
+ IPhreeqc* IPhreeqcPtr = IPhreeqcLib::GetInstance(id);
861
+ if (IPhreeqcPtr)
862
+ {
863
+ IPhreeqcPtr->SetDumpFileOn(value != 0);
864
+ return IPQ_OK;
865
+ }
866
+ return IPQ_BADINSTANCE;
867
+ }
868
+
869
+ IPQ_RESULT
870
+ SetDumpStringOn(int id, int value)
871
+ {
872
+ IPhreeqc* IPhreeqcPtr = IPhreeqcLib::GetInstance(id);
873
+ if (IPhreeqcPtr)
874
+ {
875
+ IPhreeqcPtr->SetDumpStringOn(value != 0);
876
+ return IPQ_OK;
877
+ }
878
+ return IPQ_BADINSTANCE;
879
+ }
880
+
881
+ IPQ_RESULT
882
+ SetErrorFileName(int id, const char* filename)
883
+ {
884
+ IPhreeqc* IPhreeqcPtr = IPhreeqcLib::GetInstance(id);
885
+ if (IPhreeqcPtr)
886
+ {
887
+ IPhreeqcPtr->SetErrorFileName(filename);
888
+ return IPQ_OK;
889
+ }
890
+ return IPQ_BADINSTANCE;
891
+ }
892
+
893
+ IPQ_RESULT
894
+ SetErrorFileOn(int id, int value)
895
+ {
896
+ IPhreeqc* IPhreeqcPtr = IPhreeqcLib::GetInstance(id);
897
+ if (IPhreeqcPtr)
898
+ {
899
+ IPhreeqcPtr->SetErrorFileOn(value != 0);
900
+ return IPQ_OK;
901
+ }
902
+ return IPQ_BADINSTANCE;
903
+ }
904
+
905
+ IPQ_RESULT
906
+ SetErrorOn(int id, int value)
907
+ {
908
+ IPhreeqc* IPhreeqcPtr = IPhreeqcLib::GetInstance(id);
909
+ if (IPhreeqcPtr)
910
+ {
911
+ IPhreeqcPtr->SetErrorOn(value != 0);
912
+ return IPQ_OK;
913
+ }
914
+ return IPQ_BADINSTANCE;
915
+ }
916
+
917
+ IPQ_RESULT
918
+ SetErrorStringOn(int id, int value)
919
+ {
920
+ IPhreeqc* IPhreeqcPtr = IPhreeqcLib::GetInstance(id);
921
+ if (IPhreeqcPtr)
922
+ {
923
+ IPhreeqcPtr->SetErrorStringOn(value != 0);
924
+ return IPQ_OK;
925
+ }
926
+ return IPQ_BADINSTANCE;
927
+ }
928
+
929
+ IPQ_RESULT
930
+ SetLogFileName(int id, const char* filename)
931
+ {
932
+ IPhreeqc* IPhreeqcPtr = IPhreeqcLib::GetInstance(id);
933
+ if (IPhreeqcPtr)
934
+ {
935
+ IPhreeqcPtr->SetLogFileName(filename);
936
+ return IPQ_OK;
937
+ }
938
+ return IPQ_BADINSTANCE;
939
+ }
940
+
941
+ IPQ_RESULT
942
+ SetLogFileOn(int id, int value)
943
+ {
944
+ IPhreeqc* IPhreeqcPtr = IPhreeqcLib::GetInstance(id);
945
+ if (IPhreeqcPtr)
946
+ {
947
+ IPhreeqcPtr->SetLogFileOn(value != 0);
948
+ return IPQ_OK;
949
+ }
950
+ return IPQ_BADINSTANCE;
951
+ }
952
+
953
+ IPQ_RESULT
954
+ SetLogStringOn(int id, int value)
955
+ {
956
+ IPhreeqc* IPhreeqcPtr = IPhreeqcLib::GetInstance(id);
957
+ if (IPhreeqcPtr)
958
+ {
959
+ IPhreeqcPtr->SetLogStringOn(value != 0);
960
+ return IPQ_OK;
961
+ }
962
+ return IPQ_BADINSTANCE;
963
+ }
964
+
965
+ IPQ_RESULT
966
+ SetOutputFileName(int id, const char* filename)
967
+ {
968
+ IPhreeqc* IPhreeqcPtr = IPhreeqcLib::GetInstance(id);
969
+ if (IPhreeqcPtr)
970
+ {
971
+ IPhreeqcPtr->SetOutputFileName(filename);
972
+ return IPQ_OK;
973
+ }
974
+ return IPQ_BADINSTANCE;
975
+ }
976
+
977
+ IPQ_RESULT
978
+ SetOutputFileOn(int id, int value)
979
+ {
980
+ IPhreeqc* IPhreeqcPtr = IPhreeqcLib::GetInstance(id);
981
+ if (IPhreeqcPtr)
982
+ {
983
+ IPhreeqcPtr->SetOutputFileOn(value != 0);
984
+ return IPQ_OK;
985
+ }
986
+ return IPQ_BADINSTANCE;
987
+ }
988
+
989
+ IPQ_RESULT
990
+ SetOutputStringOn(int id, int value)
991
+ {
992
+ IPhreeqc* IPhreeqcPtr = IPhreeqcLib::GetInstance(id);
993
+ if (IPhreeqcPtr)
994
+ {
995
+ IPhreeqcPtr->SetOutputStringOn(value != 0);
996
+ return IPQ_OK;
997
+ }
998
+ return IPQ_BADINSTANCE;
999
+ }
1000
+
1001
+ IPQ_RESULT
1002
+ SetSelectedOutputFileName(int id, const char* filename)
1003
+ {
1004
+ IPhreeqc* IPhreeqcPtr = IPhreeqcLib::GetInstance(id);
1005
+ if (IPhreeqcPtr)
1006
+ {
1007
+ IPhreeqcPtr->SetSelectedOutputFileName(filename);
1008
+ return IPQ_OK;
1009
+ }
1010
+ return IPQ_BADINSTANCE;
1011
+ }
1012
+
1013
+ IPQ_RESULT
1014
+ SetSelectedOutputFileOn(int id, int value)
1015
+ {
1016
+ IPhreeqc* IPhreeqcPtr = IPhreeqcLib::GetInstance(id);
1017
+ if (IPhreeqcPtr)
1018
+ {
1019
+ IPhreeqcPtr->SetSelectedOutputFileOn(value != 0);
1020
+ return IPQ_OK;
1021
+ }
1022
+ return IPQ_BADINSTANCE;
1023
+ }
1024
+
1025
+ IPQ_RESULT
1026
+ SetSelectedOutputStringOn(int id, int value)
1027
+ {
1028
+ IPhreeqc* IPhreeqcPtr = IPhreeqcLib::GetInstance(id);
1029
+ if (IPhreeqcPtr)
1030
+ {
1031
+ IPhreeqcPtr->SetSelectedOutputStringOn(value != 0);
1032
+ return IPQ_OK;
1033
+ }
1034
+ return IPQ_BADINSTANCE;
1035
+ }
1036
+
1037
+ // helper functions
1038
+ //
1039
+
1040
+ int
1041
+ IPhreeqcLib::CreateIPhreeqc(void)
1042
+ {
1043
+ int n = IPQ_OUTOFMEMORY;
1044
+ IPhreeqc* IPhreeqcPtr;
1045
+ try
1046
+ {
1047
+ IPhreeqcPtr = new IPhreeqc;
1048
+ n = (int) IPhreeqcPtr->Index;
1049
+ }
1050
+ catch (const std::bad_alloc&)
1051
+ {
1052
+ return IPQ_OUTOFMEMORY;
1053
+ }
1054
+ return n;
1055
+ }
1056
+
1057
+ IPQ_RESULT
1058
+ IPhreeqcLib::DestroyIPhreeqc(int id)
1059
+ {
1060
+ IPQ_RESULT retval = IPQ_BADINSTANCE;
1061
+ if (id >= 0)
1062
+ {
1063
+ if (IPhreeqc *ptr = IPhreeqcLib::GetInstance(id))
1064
+ {
1065
+ delete ptr;
1066
+ retval = IPQ_OK;
1067
+ }
1068
+ }
1069
+ return retval;
1070
+ }
1071
+
1072
+ IPhreeqc*
1073
+ IPhreeqcLib::GetInstance(int id)
1074
+ {
1075
+ IPhreeqc* instance = 0;
1076
+ mutex_lock(&map_lock);
1077
+ std::map<size_t, IPhreeqc*>::iterator it = IPhreeqc::Instances.find(size_t(id));
1078
+ if (it != IPhreeqc::Instances.end())
1079
+ {
1080
+ instance = (*it).second;
1081
+ }
1082
+ mutex_unlock(&map_lock);
1083
+ return instance;
1084
+ }
1085
+ //// static method
1086
+ //void IPhreeqcLib::CleanupIPhreeqcInstances(void)
1087
+ //{
1088
+ // std::map<size_t, IPhreeqc*>::iterator it = IPhreeqc::Instances.begin();
1089
+ // std::vector<IPhreeqc*> ip_list;
1090
+ // for ( ; it != IPhreeqc::Instances.end(); it++)
1091
+ // {
1092
+ // ip_list.push_back(it->second);
1093
+ // }
1094
+ // for (size_t i = 0; i < ip_list.size(); i++)
1095
+ // {
1096
+ // delete ip_list[i];
1097
+ // }
1098
+ //}