pyEQL 1.4.0rc9__cp312-cp312-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-312-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,1507 @@
1
+ // StorageBin.cxx: implementation of the cxxStorageBin class.
2
+ //
3
+ //////////////////////////////////////////////////////////////////////
4
+ #ifdef _DEBUG
5
+ #pragma warning(disable : 4786) // disable truncation warning (Only used by debugger)
6
+ #endif
7
+ #include <fstream>
8
+ #include <iostream> // std::cout std::cerr
9
+ #include <cassert> // assert
10
+ #include <algorithm> // std::sort
11
+
12
+ #include "Utils.h" // define first
13
+ #include "Phreeqc.h"
14
+ #include "NameDouble.h"
15
+ #include "StorageBin.h"
16
+ #include "SSassemblage.h"
17
+ #include "Solution.h"
18
+ #include "Exchange.h"
19
+ #include "GasPhase.h"
20
+ #include "cxxKinetics.h"
21
+ #include "PPassemblage.h"
22
+ #include "SS.h"
23
+ #include "SSassemblage.h"
24
+ #include "Surface.h"
25
+ #include "cxxMix.h"
26
+ #include "Reaction.h"
27
+ #include "Temperature.h"
28
+ #include "phqalloc.h"
29
+ #include "Use.h"
30
+
31
+ #if defined(PHREEQCI_GUI)
32
+ #ifdef _DEBUG
33
+ #define new DEBUG_NEW
34
+ #undef THIS_FILE
35
+ static char THIS_FILE[] = __FILE__;
36
+ #endif
37
+ #endif
38
+
39
+ //////////////////////////////////////////////////////////////////////
40
+ // Construction/Destruction
41
+ //////////////////////////////////////////////////////////////////////
42
+ cxxStorageBin::cxxStorageBin(PHRQ_io *io)
43
+ :
44
+ PHRQ_base(io)
45
+ {
46
+ // default constructor for cxxStorageBin
47
+ this->system.Set_io(io);
48
+ this->system.Initialize();
49
+ }
50
+
51
+ cxxStorageBin::cxxStorageBin(cxxUse &use_ref, PHRQ_io *io)
52
+ :
53
+ PHRQ_base(io)
54
+ {
55
+ this->system.Set_io(io);
56
+ this->system.Initialize();
57
+ // Solution
58
+ if (use_ref.Get_solution_ptr() != NULL)
59
+ {
60
+ this->Set_Solution(use_ref.Get_solution_ptr()->Get_n_user(), use_ref.Get_solution_ptr());
61
+ }
62
+
63
+ // Exchange
64
+ if (use_ref.Get_exchange_ptr() != NULL)
65
+ {
66
+ this->Set_Exchange(use_ref.Get_exchange_ptr()->Get_n_user(), use_ref.Get_exchange_ptr());
67
+ }
68
+
69
+ // gas_phase
70
+ if (use_ref.Get_gas_phase_ptr() != NULL)
71
+ {
72
+ this->Set_GasPhase(use_ref.Get_gas_phase_ptr()->Get_n_user(), use_ref.Get_gas_phase_ptr());
73
+ }
74
+
75
+ // kinetics
76
+ if (use_ref.Get_kinetics_ptr() != NULL)
77
+ {
78
+ this->Set_Kinetics(use_ref.Get_kinetics_ptr()->Get_n_user(), use_ref.Get_kinetics_ptr());
79
+ }
80
+
81
+ // pp_assemblage
82
+ if (use_ref.Get_pp_assemblage_ptr() != NULL)
83
+ {
84
+ this->Set_PPassemblage(use_ref.Get_pp_assemblage_ptr()->Get_n_user(), use_ref.Get_pp_assemblage_ptr());
85
+ }
86
+
87
+ // ss_assemblage
88
+ if (use_ref.Get_ss_assemblage_ptr() != NULL)
89
+ {
90
+ this->Set_SSassemblage(use_ref.Get_ss_assemblage_ptr()->Get_n_user(), use_ref.Get_ss_assemblage_ptr());
91
+ }
92
+
93
+ // surface
94
+ if (use_ref.Get_surface_ptr() != NULL)
95
+ {
96
+ this->Set_Surface(use_ref.Get_surface_ptr()->Get_n_user(), use_ref.Get_surface_ptr());
97
+ }
98
+
99
+ // mix
100
+ if (use_ref.Get_mix_ptr() != NULL)
101
+ {
102
+ this->Set_Mix(use_ref.Get_mix_ptr()->Get_n_user(), use_ref.Get_mix_ptr());
103
+ }
104
+
105
+ // reaction
106
+ if (use_ref.Get_reaction_ptr() != NULL)
107
+ {
108
+ this->Set_Reaction(use_ref.Get_reaction_ptr()->Get_n_user(), use_ref.Get_reaction_ptr());
109
+ }
110
+
111
+ // reaction temperature
112
+ if (use_ref.Get_temperature_ptr() != NULL)
113
+ {
114
+ this->Set_Temperature(use_ref.Get_temperature_ptr()->Get_n_user(), use_ref.Get_temperature_ptr());
115
+ }
116
+
117
+ // reaction pressure
118
+ if (use_ref.Get_pressure_ptr() != NULL)
119
+ {
120
+ this->Set_Pressure(use_ref.Get_pressure_ptr()->Get_n_user(), use_ref.Get_pressure_ptr());
121
+ }
122
+ }
123
+ cxxStorageBin::~cxxStorageBin()
124
+ {
125
+ }
126
+ void
127
+ cxxStorageBin::Add(cxxStorageBin &src, int n)
128
+ {
129
+ // Solution
130
+ if (src.Get_Solution(n) != NULL)
131
+ {
132
+ this->Set_Solution(n, src.Get_Solution(n));
133
+ }
134
+
135
+ // Exchange
136
+ if (src.Get_Exchange(n) != NULL)
137
+ {
138
+ this->Set_Exchange(n, src.Get_Exchange(n));
139
+ }
140
+
141
+ // gas_phase
142
+ if (src.Get_GasPhase(n) != NULL)
143
+ {
144
+ this->Set_GasPhase(n, src.Get_GasPhase(n));
145
+ }
146
+
147
+ // kinetics
148
+ if (src.Get_Kinetics(n) != NULL)
149
+ {
150
+ this->Set_Kinetics(n, src.Get_Kinetics(n));
151
+ }
152
+
153
+ // pp_assemblage
154
+ if (src.Get_PPassemblage(n) != NULL)
155
+ {
156
+ this->Set_PPassemblage(n, src.Get_PPassemblage(n));
157
+ }
158
+
159
+ // ss_assemblage
160
+ if (src.Get_SSassemblage(n) != NULL)
161
+ {
162
+ this->Set_SSassemblage(n, src.Get_SSassemblage(n));
163
+ }
164
+
165
+ // surface
166
+ if (src.Get_Surface(n) != NULL)
167
+ {
168
+ this->Set_Surface(n, src.Get_Surface(n));
169
+ }
170
+
171
+ // mix
172
+ if (src.Get_Mix(n) != NULL)
173
+ {
174
+ this->Set_Mix(n, src.Get_Mix(n));
175
+ }
176
+
177
+ // reaction
178
+ if (src.Get_Reaction(n) != NULL)
179
+ {
180
+ this->Set_Reaction(n, src.Get_Reaction(n));
181
+ }
182
+
183
+ // reaction temperature
184
+ if (src.Get_Temperature(n) != NULL)
185
+ {
186
+ this->Set_Temperature(n, src.Get_Temperature(n));
187
+ }
188
+
189
+ // reaction pressure
190
+ if (src.Get_Pressure(n) != NULL)
191
+ {
192
+ this->Set_Pressure(n, src.Get_Pressure(n));
193
+ }
194
+ }
195
+ void
196
+ cxxStorageBin::Add_uz(cxxStorageBin &uzbin)
197
+ {
198
+ cxxMix mx;
199
+ mx.Add(0, 1.0);
200
+ mx.Add(1, 1.0);
201
+
202
+ // Solution
203
+
204
+ // Exchange
205
+ {
206
+ std::map<int, cxxExchange>::iterator it_uz = uzbin.Get_Exchangers().begin();
207
+ std::map<int, cxxExchange> temp_map;
208
+ for (; it_uz != uzbin.Get_Exchangers().end(); it_uz++)
209
+ {
210
+ int n_user = it_uz->second.Get_n_user();
211
+ std::map < int, cxxExchange >::iterator it_sz = this->Exchangers.find(n_user);
212
+ if (it_sz == this->Exchangers.end())
213
+ {
214
+ this->Exchangers[n_user] = it_uz->second;
215
+ }
216
+ else
217
+ {
218
+ temp_map[0] = it_uz->second;
219
+ temp_map[1] = it_sz->second;
220
+ cxxExchange temp_entity(temp_map, mx, n_user);
221
+ this->Exchangers[n_user] = temp_entity;
222
+ }
223
+ }
224
+ }
225
+
226
+ // gas_phase
227
+ {
228
+ std::map<int, cxxGasPhase>::iterator it_uz = uzbin.Get_GasPhases().begin();
229
+ std::map<int, cxxGasPhase> temp_map;
230
+ for (; it_uz != uzbin.Get_GasPhases().end(); it_uz++)
231
+ {
232
+ int n_user = it_uz->second.Get_n_user();
233
+ std::map < int, cxxGasPhase >::iterator it_sz = this->GasPhases.find(n_user);
234
+ if (it_sz == this->GasPhases.end())
235
+ {
236
+ this->GasPhases[n_user] = it_uz->second;
237
+ }
238
+ else
239
+ {
240
+ temp_map[0] = it_uz->second;
241
+ temp_map[1] = it_sz->second;
242
+ cxxGasPhase temp_entity(temp_map, mx, n_user);
243
+ this->GasPhases[n_user] = temp_entity;
244
+ }
245
+ }
246
+ }
247
+
248
+ // kinetics
249
+ {
250
+ std::map<int, cxxKinetics>::iterator it_uz = uzbin.Get_Kinetics().begin();
251
+ std::map<int, cxxKinetics> temp_map;
252
+ for (; it_uz != uzbin.Get_Kinetics().end(); it_uz++)
253
+ {
254
+ int n_user = it_uz->second.Get_n_user();
255
+ std::map < int, cxxKinetics >::iterator it_sz = this->Kinetics.find(n_user);
256
+ if (it_sz == this->Kinetics.end())
257
+ {
258
+ this->Kinetics[n_user] = it_uz->second;
259
+ }
260
+ else
261
+ {
262
+ temp_map[0] = it_uz->second;
263
+ temp_map[1] = it_sz->second;
264
+ cxxKinetics temp_entity(temp_map, mx, n_user);
265
+ this->Kinetics[n_user] = temp_entity;
266
+ }
267
+ }
268
+ }
269
+
270
+ // pp_assemblage
271
+ {
272
+ std::map<int, cxxPPassemblage>::iterator it_uz = uzbin.Get_PPassemblages().begin();
273
+ std::map<int, cxxPPassemblage> temp_map;
274
+ for (; it_uz != uzbin.Get_PPassemblages().end(); it_uz++)
275
+ {
276
+ int n_user = it_uz->second.Get_n_user();
277
+ std::map < int, cxxPPassemblage >::iterator it_sz = this->PPassemblages.find(n_user);
278
+ if (it_sz == this->PPassemblages.end())
279
+ {
280
+ this->PPassemblages[n_user] = it_uz->second;
281
+ }
282
+ else
283
+ {
284
+ temp_map[0] = it_uz->second;
285
+ temp_map[1] = it_sz->second;
286
+ cxxPPassemblage temp_entity(temp_map, mx, n_user);
287
+ this->PPassemblages[n_user] = temp_entity;
288
+ }
289
+ }
290
+ }
291
+
292
+ // ss_assemblage
293
+ {
294
+ std::map<int, cxxSSassemblage>::iterator it_uz = uzbin.Get_SSassemblages().begin();
295
+ std::map<int, cxxSSassemblage> temp_map;
296
+ for (; it_uz != uzbin.Get_SSassemblages().end(); it_uz++)
297
+ {
298
+ int n_user = it_uz->second.Get_n_user();
299
+ std::map < int, cxxSSassemblage >::iterator it_sz = this->SSassemblages.find(n_user);
300
+ if (it_sz == this->SSassemblages.end())
301
+ {
302
+ this->SSassemblages[n_user] = it_uz->second;
303
+ }
304
+ else
305
+ {
306
+ temp_map[0] = it_uz->second;
307
+ temp_map[1] = it_sz->second;
308
+ cxxSSassemblage temp_entity(temp_map, mx, n_user);
309
+ this->SSassemblages[n_user] = temp_entity;
310
+ }
311
+ }
312
+ }
313
+
314
+ // surface
315
+ {
316
+ std::map<int, cxxSurface>::iterator it_uz = uzbin.Get_Surfaces().begin();
317
+ std::map<int, cxxSurface> temp_map;
318
+ for (; it_uz != uzbin.Get_Surfaces().end(); it_uz++)
319
+ {
320
+ int n_user = it_uz->second.Get_n_user();
321
+ std::map < int, cxxSurface >::iterator it_sz = this->Surfaces.find(n_user);
322
+ if (it_sz == this->Surfaces.end())
323
+ {
324
+ this->Surfaces[n_user] = it_uz->second;
325
+ }
326
+ else
327
+ {
328
+ temp_map[0] = it_uz->second;
329
+ temp_map[1] = it_sz->second;
330
+ cxxSurface temp_entity(temp_map, mx, n_user);
331
+ this->Surfaces[n_user] = temp_entity;
332
+ }
333
+ }
334
+ }
335
+
336
+ // mix
337
+
338
+ // reaction
339
+
340
+ // reaction temperature
341
+
342
+ // reaction pressure
343
+ }
344
+ void
345
+ cxxStorageBin::Copy(int destination, int source)
346
+ {
347
+ if (destination == source)
348
+ return;
349
+ this->Remove(destination);
350
+ // Solution
351
+ {
352
+ std::map < int, cxxSolution >::iterator it = this->Solutions.find(source);
353
+ if (it != this->Solutions.end())
354
+ {
355
+ this->Set_Solution(destination, &(it->second));
356
+ }
357
+ }
358
+
359
+ // Exchange
360
+ {
361
+ std::map < int, cxxExchange >::iterator it = this->Exchangers.find(source);
362
+ if (it != this->Exchangers.end())
363
+ {
364
+ this->Set_Exchange(destination, &(it->second));
365
+ }
366
+ }
367
+
368
+ // gas_phase
369
+ {
370
+ std::map < int, cxxGasPhase >::iterator it = this->GasPhases.find(source);
371
+ if (it != this->GasPhases.end())
372
+ {
373
+ this->Set_GasPhase(destination, &(it->second));
374
+ }
375
+ }
376
+ // kinetics
377
+ {
378
+ std::map < int, cxxKinetics >::iterator it = this->Kinetics.find(source);
379
+ if (it != this->Kinetics.end())
380
+ {
381
+ this->Set_Kinetics(destination, &(it->second));
382
+ }
383
+ }
384
+ // pp_assemblage
385
+ {
386
+ std::map < int, cxxPPassemblage >::iterator it = this->PPassemblages.find(source);
387
+ if (it != this->PPassemblages.end())
388
+ {
389
+ this->Set_PPassemblage(destination, &(it->second));
390
+ }
391
+ }
392
+ // ss_assemblage
393
+ {
394
+ std::map < int, cxxSSassemblage >::iterator it = this->SSassemblages.find(source);
395
+ if (it != this->SSassemblages.end())
396
+ {
397
+ this->Set_SSassemblage(destination, &(it->second));
398
+ }
399
+ }
400
+ // surface
401
+ {
402
+ std::map < int, cxxSurface >::iterator it = this->Surfaces.find(source);
403
+ if (it != this->Surfaces.end())
404
+ {
405
+ this->Set_Surface(destination, &(it->second));
406
+ }
407
+ }
408
+ // mix
409
+ {
410
+ std::map < int, cxxMix >::iterator it = this->Mixes.find(source);
411
+ if (it != this->Mixes.end())
412
+ {
413
+ this->Set_Mix(destination, &(it->second));
414
+ }
415
+ }
416
+ // reaction
417
+ {
418
+ std::map < int, cxxReaction >::iterator it = this->Reactions.find(source);
419
+ if (it != this->Reactions.end())
420
+ {
421
+ this->Set_Reaction(destination, &(it->second));
422
+ }
423
+ }
424
+ // reaction temperature
425
+ {
426
+ std::map < int, cxxTemperature >::iterator it = this->Temperatures.find(source);
427
+ if (it != this->Temperatures.end())
428
+ {
429
+ this->Set_Temperature(destination, &(it->second));
430
+ }
431
+ }
432
+
433
+ // reaction pressure
434
+ {
435
+ this->Set_Pressure(destination, Utilities::Rxn_find(this->Pressures, source));
436
+ }
437
+ }
438
+
439
+ cxxSolution *
440
+ cxxStorageBin::Get_Solution(int n_user)
441
+ {
442
+ if (this->Solutions.find(n_user) != this->Solutions.end())
443
+ {
444
+ return (&(this->Solutions.find(n_user)->second));
445
+ }
446
+ return (NULL);
447
+ }
448
+ void
449
+ cxxStorageBin::Set_Solution(int n_user, cxxSolution * entity)
450
+ {
451
+ if (entity == NULL)
452
+ return;
453
+ Solutions[n_user] = *entity;
454
+ Solutions.find(n_user)->second.Set_n_user_both(n_user);
455
+ }
456
+ void
457
+ cxxStorageBin::Set_Solution(int n_user, cxxSolution & entity)
458
+ {
459
+ Solutions[n_user] = entity;
460
+ Solutions.find(n_user)->second.Set_n_user_both(n_user);
461
+ }
462
+ void
463
+ cxxStorageBin::Remove_Solution(int n_user)
464
+ {
465
+ Solutions.erase(n_user);
466
+ }
467
+
468
+ cxxExchange *
469
+ cxxStorageBin::Get_Exchange(int n_user)
470
+ {
471
+ if (this->Exchangers.find(n_user) != this->Exchangers.end())
472
+ {
473
+ return (&(this->Exchangers.find(n_user)->second));
474
+ }
475
+ return (NULL);
476
+ }
477
+ void
478
+ cxxStorageBin::Set_Exchange(int n_user, cxxExchange * entity)
479
+ {
480
+ if (entity == NULL)
481
+ return;
482
+ Exchangers[n_user] = *entity;
483
+ Exchangers.find(n_user)->second.Set_n_user_both(n_user);
484
+ }
485
+ void
486
+ cxxStorageBin::Set_Exchange(int n_user, cxxExchange & entity)
487
+ {
488
+ Exchangers[n_user] = entity;
489
+ Exchangers.find(n_user)->second.Set_n_user_both(n_user);
490
+ }
491
+ void
492
+ cxxStorageBin::Remove_Exchange(int n_user)
493
+ {
494
+ Exchangers.erase(n_user);
495
+ }
496
+
497
+ cxxPPassemblage *
498
+ cxxStorageBin::Get_PPassemblage(int n_user)
499
+ {
500
+ if (this->PPassemblages.find(n_user) != this->PPassemblages.end())
501
+ {
502
+ return (&(this->PPassemblages.find(n_user)->second));
503
+ }
504
+ return (NULL);
505
+ }
506
+ void
507
+ cxxStorageBin::Set_PPassemblage(int n_user, cxxPPassemblage * entity)
508
+ {
509
+ if (entity == NULL)
510
+ return;
511
+ PPassemblages[n_user] = *entity;
512
+ PPassemblages.find(n_user)->second.Set_n_user_both(n_user);
513
+ }
514
+ void
515
+ cxxStorageBin::Set_PPassemblage(int n_user, cxxPPassemblage & entity)
516
+ {
517
+ PPassemblages[n_user] = entity;
518
+ PPassemblages.find(n_user)->second.Set_n_user_both(n_user);
519
+ }
520
+ void
521
+ cxxStorageBin::Remove_PPassemblage(int n_user)
522
+ {
523
+ PPassemblages.erase(n_user);
524
+ }
525
+
526
+ cxxGasPhase *
527
+ cxxStorageBin::Get_GasPhase(int n_user)
528
+ {
529
+ if (this->GasPhases.find(n_user) != this->GasPhases.end())
530
+ {
531
+ return (&(this->GasPhases.find(n_user)->second));
532
+ }
533
+ return (NULL);
534
+ }
535
+ void
536
+ cxxStorageBin::Set_GasPhase(int n_user, cxxGasPhase * entity)
537
+ {
538
+ if (entity == NULL)
539
+ return;
540
+ GasPhases[n_user] = *entity;
541
+ GasPhases.find(n_user)->second.Set_n_user_both(n_user);
542
+ }
543
+ void
544
+ cxxStorageBin::Set_GasPhase(int n_user, cxxGasPhase & entity)
545
+ {
546
+ GasPhases[n_user] = entity;
547
+ GasPhases.find(n_user)->second.Set_n_user_both(n_user);
548
+ }
549
+ void
550
+ cxxStorageBin::Remove_GasPhase(int n_user)
551
+ {
552
+ GasPhases.erase(n_user);
553
+ }
554
+
555
+ cxxSSassemblage *
556
+ cxxStorageBin::Get_SSassemblage(int n_user)
557
+ {
558
+ if (this->SSassemblages.find(n_user) != this->SSassemblages.end())
559
+ {
560
+ return (&(this->SSassemblages.find(n_user)->second));
561
+ }
562
+ return (NULL);
563
+ }
564
+ void
565
+ cxxStorageBin::Set_SSassemblage(int n_user, cxxSSassemblage * entity)
566
+ {
567
+ if (entity == NULL)
568
+ return;
569
+ SSassemblages[n_user] = *entity;
570
+ SSassemblages.find(n_user)->second.Set_n_user_both(n_user);
571
+ }
572
+ void
573
+ cxxStorageBin::Set_SSassemblage(int n_user, cxxSSassemblage & entity)
574
+ {
575
+ SSassemblages[n_user] = entity;
576
+ SSassemblages.find(n_user)->second.Set_n_user_both(n_user);
577
+ }
578
+ void
579
+ cxxStorageBin::Remove_SSassemblage(int n_user)
580
+ {
581
+ SSassemblages.erase(n_user);
582
+ }
583
+
584
+ cxxKinetics *
585
+ cxxStorageBin::Get_Kinetics(int n_user)
586
+ {
587
+ if (this->Kinetics.find(n_user) != this->Kinetics.end())
588
+ {
589
+ return (&(this->Kinetics.find(n_user)->second));
590
+ }
591
+ return (NULL);
592
+ }
593
+ void
594
+ cxxStorageBin::Set_Kinetics(int n_user, cxxKinetics * entity)
595
+ {
596
+ if (entity == NULL)
597
+ return;
598
+ Kinetics[n_user] = *entity;
599
+ Kinetics.find(n_user)->second.Set_n_user_both(n_user);
600
+ }
601
+ void
602
+ cxxStorageBin::Set_Kinetics(int n_user, cxxKinetics & entity)
603
+ {
604
+ Kinetics[n_user] = entity;
605
+ Kinetics.find(n_user)->second.Set_n_user_both(n_user);
606
+ }
607
+ void
608
+ cxxStorageBin::Remove_Kinetics(int n_user)
609
+ {
610
+ Kinetics.erase(n_user);
611
+ }
612
+
613
+ cxxSurface *
614
+ cxxStorageBin::Get_Surface(int n_user)
615
+ {
616
+ if (this->Surfaces.find(n_user) != this->Surfaces.end())
617
+ {
618
+ return (&(this->Surfaces.find(n_user)->second));
619
+ }
620
+ return (NULL);
621
+ }
622
+ void
623
+ cxxStorageBin::Set_Surface(int n_user, cxxSurface * entity)
624
+ {
625
+ if (entity == NULL)
626
+ return;
627
+ Surfaces[n_user] = *entity;
628
+ Surfaces.find(n_user)->second.Set_n_user_both(n_user);
629
+ }
630
+ void
631
+ cxxStorageBin::Set_Surface(int n_user, cxxSurface & entity)
632
+ {
633
+ Surfaces[n_user] = entity;
634
+ Surfaces.find(n_user)->second.Set_n_user_both(n_user);
635
+ }
636
+ void
637
+ cxxStorageBin::Remove_Surface(int n_user)
638
+ {
639
+ Surfaces.erase(n_user);
640
+ }
641
+
642
+ cxxMix *
643
+ cxxStorageBin::Get_Mix(int n_user)
644
+ {
645
+ if (this->Mixes.find(n_user) != this->Mixes.end())
646
+ {
647
+ return (&(this->Mixes.find(n_user)->second));
648
+ }
649
+ return (NULL);
650
+ }
651
+ void
652
+ cxxStorageBin::Set_Mix(int n_user, cxxMix * entity)
653
+ {
654
+ if (entity == NULL)
655
+ return;
656
+ Mixes[n_user] = *entity;
657
+ Mixes.find(n_user)->second.Set_n_user_both(n_user);
658
+ }
659
+ void
660
+ cxxStorageBin::Set_Mix(int n_user, cxxMix & entity)
661
+ {
662
+ Mixes[n_user] = entity;
663
+ Mixes.find(n_user)->second.Set_n_user_both(n_user);
664
+ }
665
+ void
666
+ cxxStorageBin::Remove_Mix(int n_user)
667
+ {
668
+ Mixes.erase(n_user);
669
+ }
670
+
671
+ cxxReaction *
672
+ cxxStorageBin::Get_Reaction(int n_user)
673
+ {
674
+ if (this->Reactions.find(n_user) != this->Reactions.end())
675
+ {
676
+ return (&(this->Reactions.find(n_user)->second));
677
+ }
678
+ return (NULL);
679
+ }
680
+ void
681
+ cxxStorageBin::Set_Reaction(int n_user, cxxReaction * entity)
682
+ {
683
+ if (entity == NULL)
684
+ return;
685
+ Reactions[n_user] = *entity;
686
+ Reactions.find(n_user)->second.Set_n_user_both(n_user);
687
+ }
688
+ void
689
+ cxxStorageBin::Set_Reaction(int n_user, cxxReaction & entity)
690
+ {
691
+ Reactions[n_user] = entity;
692
+ Reactions.find(n_user)->second.Set_n_user_both(n_user);
693
+ }
694
+ void
695
+ cxxStorageBin::Remove_Reaction(int n_user)
696
+ {
697
+ Reactions.erase(n_user);
698
+ }
699
+
700
+ cxxTemperature *
701
+ cxxStorageBin::Get_Temperature(int n_user)
702
+ {
703
+ if (this->Temperatures.find(n_user) != this->Temperatures.end())
704
+ {
705
+ return (&(this->Temperatures.find(n_user)->second));
706
+ }
707
+ return (NULL);
708
+ }
709
+
710
+ void
711
+ cxxStorageBin::Set_Temperature(int n_user, cxxTemperature * entity)
712
+ {
713
+ if (entity == NULL)
714
+ return;
715
+ Temperatures[n_user] = *entity;
716
+ Temperatures.find(n_user)->second.Set_n_user_both(n_user);
717
+ }
718
+ void
719
+ cxxStorageBin::Set_Temperature(int n_user, cxxTemperature & entity)
720
+ {
721
+ Temperatures[n_user] = entity;
722
+ Temperatures.find(n_user)->second.Set_n_user_both(n_user);
723
+ }
724
+ void
725
+ cxxStorageBin::Remove_Temperature(int n_user)
726
+ {
727
+ Temperatures.erase(n_user);
728
+ }
729
+
730
+ cxxPressure *
731
+ cxxStorageBin::Get_Pressure(int n_user)
732
+ {
733
+ return Utilities::Rxn_find(this->Pressures, n_user);
734
+ }
735
+
736
+ void
737
+ cxxStorageBin::Set_Pressure(int n_user, cxxPressure * entity)
738
+ {
739
+ if (entity == NULL)
740
+ return;
741
+ Pressures[n_user] = *entity;
742
+ Pressures.find(n_user)->second.Set_n_user_both(n_user);
743
+ }
744
+ void
745
+ cxxStorageBin::Set_Pressure(int n_user, cxxPressure & entity)
746
+ {
747
+ Pressures[n_user] = entity;
748
+ Pressures.find(n_user)->second.Set_n_user_both(n_user);
749
+ }
750
+ void
751
+
752
+ cxxStorageBin::Remove_Pressure(int n_user)
753
+ {
754
+ Pressures.erase(n_user);
755
+ }
756
+
757
+ std::map < int, cxxSolution > &
758
+ cxxStorageBin::Get_Solutions()
759
+ {
760
+ return this->Solutions;
761
+ }
762
+ std::map < int, cxxExchange > &
763
+ cxxStorageBin::Get_Exchangers()
764
+ {
765
+ return this->Exchangers;
766
+ }
767
+ std::map < int, cxxGasPhase > &
768
+ cxxStorageBin::Get_GasPhases()
769
+ {
770
+ return this->GasPhases;
771
+ }
772
+ std::map < int, cxxKinetics > &
773
+ cxxStorageBin::Get_Kinetics()
774
+ {
775
+ return this->Kinetics;
776
+ }
777
+ std::map < int, cxxPPassemblage > &
778
+ cxxStorageBin::Get_PPassemblages()
779
+ {
780
+ return this->PPassemblages;
781
+ }
782
+ std::map < int, cxxSSassemblage > &
783
+ cxxStorageBin::Get_SSassemblages()
784
+ {
785
+ return this->SSassemblages;
786
+ }
787
+ std::map < int, cxxSurface > &
788
+ cxxStorageBin::Get_Surfaces()
789
+ {
790
+ return this->Surfaces;
791
+ }
792
+ std::map < int, cxxMix > &
793
+ cxxStorageBin::Get_Mixes()
794
+ {
795
+ return this->Mixes;
796
+ }
797
+ std::map < int, cxxReaction > &
798
+ cxxStorageBin::Get_Reactions()
799
+ {
800
+ return this->Reactions;
801
+ }
802
+ std::map < int, cxxTemperature > &
803
+ cxxStorageBin::Get_Temperatures()
804
+ {
805
+ return this->Temperatures;
806
+ }
807
+ std::map < int, cxxPressure > &
808
+ cxxStorageBin::Get_Pressures()
809
+ {
810
+ return this->Pressures;
811
+ }
812
+ void
813
+ cxxStorageBin::dump_raw(std::ostream & s_oss, unsigned int indent) const
814
+ {
815
+ // Dump all data
816
+ s_oss.precision(DBL_DIG - 1);
817
+
818
+ // Solutions
819
+ Utilities::Rxn_dump_raw(Solutions, s_oss, indent);
820
+
821
+ // Exchange
822
+ Utilities::Rxn_dump_raw(Exchangers, s_oss, indent);
823
+
824
+ // Gas Phases
825
+ Utilities::Rxn_dump_raw(GasPhases, s_oss, indent);
826
+
827
+ // Kinetics
828
+ Utilities::Rxn_dump_raw(Kinetics, s_oss, indent);
829
+
830
+ // PPassemblage
831
+ Utilities::Rxn_dump_raw(PPassemblages, s_oss, indent);
832
+
833
+ // SSassemblage
834
+ Utilities::Rxn_dump_raw(SSassemblages, s_oss, indent);
835
+
836
+ // Surface
837
+ Utilities::Rxn_dump_raw(Surfaces, s_oss, indent);
838
+
839
+ // Mix
840
+ Utilities::Rxn_dump_raw(Mixes, s_oss, indent);
841
+
842
+ // Reactions
843
+ Utilities::Rxn_dump_raw(Reactions, s_oss, indent);
844
+
845
+ // Temperature
846
+ Utilities::Rxn_dump_raw(Temperatures, s_oss, indent);
847
+ }
848
+
849
+ void
850
+ cxxStorageBin::dump_raw(std::ostream & s_oss, int n, unsigned int indent, int *n_out)
851
+ {
852
+ // Dump one user number, optionally change number from n to n_out
853
+ int n_user_local = (n_out != NULL) ? *n_out : n;
854
+ s_oss.precision(DBL_DIG - 1);
855
+
856
+ // Solutions
857
+ if (this->Get_Solution(n) != NULL)
858
+ {
859
+ this->Get_Solution(n)->dump_raw(s_oss, indent, &n_user_local);
860
+ }
861
+
862
+ // Exchange
863
+ if (this->Get_Exchange(n) != NULL)
864
+ {
865
+ this->Get_Exchange(n)->dump_raw(s_oss, indent, &n_user_local);
866
+ }
867
+
868
+ // Gas Phases
869
+ if (this->Get_GasPhase(n) != NULL)
870
+ {
871
+ this->Get_GasPhase(n)->dump_raw(s_oss, indent, &n_user_local);
872
+ }
873
+
874
+ // Kinetics
875
+ if (this->Get_Kinetics(n) != NULL)
876
+ {
877
+ this->Get_Kinetics(n)->dump_raw(s_oss, indent, &n_user_local);
878
+ }
879
+
880
+ // PPassemblage
881
+ if (this->Get_PPassemblage(n) != NULL)
882
+ {
883
+ this->Get_PPassemblage(n)->dump_raw(s_oss, indent, &n_user_local);
884
+ }
885
+
886
+ // SSassemblage
887
+ if (this->Get_SSassemblage(n) != NULL)
888
+ {
889
+ this->Get_SSassemblage(n)->dump_raw(s_oss, indent, &n_user_local);
890
+ }
891
+
892
+ // Surface
893
+ if (this->Get_Surface(n) != NULL)
894
+ {
895
+ this->Get_Surface(n)->dump_raw(s_oss, indent, &n_user_local);
896
+ }
897
+
898
+ // Mix
899
+ if (this->Get_Mix(n) != NULL)
900
+ {
901
+ this->Get_Mix(n)->dump_raw(s_oss, indent, &n_user_local);
902
+ }
903
+
904
+ // Reaction
905
+ if (this->Get_Reaction(n) != NULL)
906
+ {
907
+ this->Get_Reaction(n)->dump_raw(s_oss, indent, &n_user_local);
908
+ }
909
+
910
+ // Temperature
911
+ if (this->Get_Temperature(n) != NULL)
912
+ {
913
+ this->Get_Temperature(n)->dump_raw(s_oss, indent, &n_user_local);
914
+ }
915
+ }
916
+
917
+ void
918
+ cxxStorageBin::dump_raw_range(std::ostream & s_oss, int start, int end, unsigned int indent) const
919
+ {
920
+ // Dump all data
921
+ s_oss.precision(DBL_DIG - 1);
922
+
923
+ // Solutions
924
+ Utilities::Rxn_dump_raw_range(Solutions, s_oss, start, end, indent);
925
+
926
+ // Exchange
927
+ Utilities::Rxn_dump_raw_range(Exchangers, s_oss, start, end, indent);
928
+
929
+ // Gas Phases
930
+ Utilities::Rxn_dump_raw_range(GasPhases, s_oss, start, end, indent);
931
+
932
+ // Kinetics
933
+ Utilities::Rxn_dump_raw_range(Kinetics, s_oss, start, end, indent);
934
+
935
+ // PPassemblage
936
+ Utilities::Rxn_dump_raw_range(PPassemblages, s_oss, start, end, indent);
937
+
938
+ // SSassemblage
939
+ Utilities::Rxn_dump_raw_range(SSassemblages, s_oss, start, end, indent);
940
+
941
+ // Surface
942
+ Utilities::Rxn_dump_raw_range(Surfaces, s_oss, start, end, indent);
943
+
944
+ // Mix
945
+ Utilities::Rxn_dump_raw_range(Mixes, s_oss, start, end, indent);
946
+
947
+ // Reactions
948
+ Utilities::Rxn_dump_raw_range(Reactions, s_oss, start, end, indent);
949
+
950
+ // Temperature
951
+ Utilities::Rxn_dump_raw_range(Temperatures, s_oss, start, end, indent);
952
+ }
953
+
954
+ void
955
+ cxxStorageBin::read_raw(CParser & parser)
956
+ {
957
+ PHRQ_io::LINE_TYPE i;
958
+ while ((i =
959
+ parser.check_line("StorageBin read_raw", false, true, true,
960
+ true)) != PHRQ_io::LT_KEYWORD)
961
+ {
962
+ if (i == PHRQ_io::LT_EOF)
963
+ return; // PHRQ_io::LT_EOF;
964
+ }
965
+
966
+ for (;;)
967
+ {
968
+ switch (parser.next_keyword())
969
+ {
970
+ case Keywords::KEY_END:
971
+ case Keywords::KEY_NONE:
972
+ goto END_OF_SIMULATION_INPUT;
973
+ break;
974
+ case Keywords::KEY_SOLUTION_RAW:
975
+ {
976
+ cxxSolution entity(this->Get_io());
977
+ entity.read_raw(parser);
978
+ Solutions[entity.Get_n_user()] = entity;
979
+ }
980
+ break;
981
+ case Keywords::KEY_SOLUTION_MODIFY:
982
+ {
983
+ Utilities::SB_read_modify(this->Solutions, parser);
984
+ }
985
+ break;
986
+ case Keywords::KEY_EXCHANGE_RAW:
987
+ {
988
+ cxxExchange entity(this->Get_io());
989
+ entity.read_raw(parser);
990
+ Exchangers[entity.Get_n_user()] = entity;
991
+ }
992
+ break;
993
+ case Keywords::KEY_EXCHANGE_MODIFY:
994
+ {
995
+ Utilities::SB_read_modify(this->Exchangers, parser);
996
+ }
997
+ break;
998
+ case Keywords::KEY_GAS_PHASE_RAW:
999
+ {
1000
+ cxxGasPhase entity(this->Get_io());
1001
+ entity.read_raw(parser);
1002
+ GasPhases[entity.Get_n_user()] = entity;
1003
+ }
1004
+ break;
1005
+ case Keywords::KEY_GAS_PHASE_MODIFY:
1006
+ {
1007
+ Utilities::SB_read_modify(this->GasPhases, parser);
1008
+ }
1009
+ break;
1010
+ case Keywords::KEY_KINETICS_RAW:
1011
+ {
1012
+ cxxKinetics entity(this->Get_io());
1013
+ entity.read_raw(parser);
1014
+ Kinetics[entity.Get_n_user()] = entity;
1015
+ }
1016
+ break;
1017
+ case Keywords::KEY_KINETICS_MODIFY:
1018
+ {
1019
+ Utilities::SB_read_modify(this->Kinetics, parser);
1020
+ }
1021
+ break;
1022
+ case Keywords::KEY_EQUILIBRIUM_PHASES_RAW:
1023
+ {
1024
+ cxxPPassemblage entity(this->Get_io());
1025
+ entity.read_raw(parser);
1026
+ PPassemblages[entity.Get_n_user()] = entity;
1027
+ }
1028
+ break;
1029
+ case Keywords::KEY_EQUILIBRIUM_PHASES_MODIFY:
1030
+ {
1031
+ Utilities::SB_read_modify(this->PPassemblages, parser);
1032
+ }
1033
+ break;
1034
+ case Keywords::KEY_SOLID_SOLUTIONS_RAW:
1035
+ {
1036
+ cxxSSassemblage entity(this->Get_io());
1037
+ entity.read_raw(parser);
1038
+ SSassemblages[entity.Get_n_user()] = entity;
1039
+ }
1040
+ break;
1041
+ case Keywords::KEY_SOLID_SOLUTIONS_MODIFY:
1042
+ {
1043
+ Utilities::SB_read_modify(this->SSassemblages, parser);
1044
+ }
1045
+ break;
1046
+ case Keywords::KEY_SURFACE_RAW:
1047
+ {
1048
+ cxxSurface entity(this->Get_io());
1049
+ entity.read_raw(parser);
1050
+ Surfaces[entity.Get_n_user()] = entity;
1051
+ }
1052
+ break;
1053
+ case Keywords::KEY_SURFACE_MODIFY:
1054
+ {
1055
+ Utilities::SB_read_modify(this->Surfaces, parser);
1056
+ }
1057
+ break;
1058
+ case Keywords::KEY_REACTION_TEMPERATURE_RAW:
1059
+ {
1060
+ cxxTemperature entity(this->Get_io());
1061
+ entity.read_raw(parser);
1062
+ Temperatures[entity.Get_n_user()] = entity;
1063
+ }
1064
+ break;
1065
+ case Keywords::KEY_REACTION_RAW:
1066
+ {
1067
+ cxxReaction entity;
1068
+ entity.read_raw(parser, true);
1069
+ Reactions[entity.Get_n_user()] = entity;
1070
+ }
1071
+ break;
1072
+ case Keywords::KEY_REACTION_MODIFY:
1073
+ {
1074
+ Utilities::SB_read_modify(this->Reactions, parser);
1075
+ }
1076
+ break;
1077
+ case Keywords::KEY_MIX_RAW:
1078
+ {
1079
+ cxxMix entity;
1080
+ entity.read_raw(parser);
1081
+ Mixes[entity.Get_n_user()] = entity;
1082
+ }
1083
+ break;
1084
+ default:
1085
+ {
1086
+ for (;;)
1087
+ {
1088
+ PHRQ_io::LINE_TYPE lt;
1089
+ lt = parser.check_line("read_raw", false, true, true, false);
1090
+ if (lt == PHRQ_io::LT_KEYWORD)
1091
+ break;
1092
+ if (lt == PHRQ_io::LT_EOF)
1093
+ goto END_OF_SIMULATION_INPUT;
1094
+ }
1095
+ }
1096
+ break;
1097
+ }
1098
+ }
1099
+
1100
+ END_OF_SIMULATION_INPUT:
1101
+ return; //PHRQ_io::LT_OK;
1102
+ }
1103
+
1104
+ int
1105
+ cxxStorageBin::read_raw_keyword(CParser & parser)
1106
+ {
1107
+ PHRQ_io::LINE_TYPE i;
1108
+ int entity_number = -999;
1109
+
1110
+ switch (parser.next_keyword())
1111
+ {
1112
+ case Keywords::KEY_NONE:
1113
+ case Keywords::KEY_END:
1114
+ while ((i =
1115
+ parser.check_line("StorageBin read_raw_keyword", false, true,
1116
+ true, true)) != PHRQ_io::LT_KEYWORD)
1117
+ {
1118
+ if (i == PHRQ_io::LT_EOF)
1119
+ break; // PHRQ_io::LT_EOF;
1120
+ }
1121
+ break;
1122
+
1123
+ case Keywords::KEY_SOLUTION_RAW:
1124
+ {
1125
+ cxxSolution entity(this->Get_io());
1126
+ entity.read_raw(parser);
1127
+ Solutions[entity.Get_n_user()] = entity;
1128
+ entity_number = entity.Get_n_user();
1129
+ }
1130
+ break;
1131
+
1132
+ case Keywords::KEY_EXCHANGE_RAW:
1133
+ {
1134
+ cxxExchange entity(this->Get_io());
1135
+ entity.read_raw(parser);
1136
+ Exchangers[entity.Get_n_user()] = entity;
1137
+ entity_number = entity.Get_n_user();
1138
+ }
1139
+ break;
1140
+
1141
+ case Keywords::KEY_GAS_PHASE_RAW:
1142
+ {
1143
+ cxxGasPhase entity(this->Get_io());
1144
+ entity.read_raw(parser);
1145
+ GasPhases[entity.Get_n_user()] = entity;
1146
+ entity_number = entity.Get_n_user();
1147
+ }
1148
+ break;
1149
+
1150
+ case Keywords::KEY_KINETICS_RAW:
1151
+ {
1152
+ cxxKinetics entity(this->Get_io());
1153
+ entity.read_raw(parser);
1154
+ Kinetics[entity.Get_n_user()] = entity;
1155
+ entity_number = entity.Get_n_user();
1156
+ }
1157
+ break;
1158
+
1159
+ case Keywords::KEY_EQUILIBRIUM_PHASES_RAW:
1160
+ {
1161
+ cxxPPassemblage entity(this->Get_io());
1162
+ entity.read_raw(parser);
1163
+ PPassemblages[entity.Get_n_user()] = entity;
1164
+ entity_number = entity.Get_n_user();
1165
+ }
1166
+ break;
1167
+
1168
+ case Keywords::KEY_SOLID_SOLUTIONS_RAW:
1169
+ {
1170
+ cxxSSassemblage entity(this->Get_io());
1171
+ entity.read_raw(parser);
1172
+ SSassemblages[entity.Get_n_user()] = entity;
1173
+ entity_number = entity.Get_n_user();
1174
+ }
1175
+ break;
1176
+
1177
+ case Keywords::KEY_SURFACE_RAW:
1178
+ {
1179
+ cxxSurface entity(this->Get_io());
1180
+ entity.read_raw(parser);
1181
+ Surfaces[entity.Get_n_user()] = entity;
1182
+ entity_number = entity.Get_n_user();
1183
+ }
1184
+ break;
1185
+
1186
+ case Keywords::KEY_REACTION_TEMPERATURE_RAW:
1187
+ {
1188
+ cxxTemperature entity(this->Get_io());
1189
+ entity.read_raw(parser);
1190
+ Temperatures[entity.Get_n_user()] = entity;
1191
+ entity_number = entity.Get_n_user();
1192
+ }
1193
+ break;
1194
+
1195
+ case Keywords::KEY_REACTION_RAW:
1196
+ {
1197
+ cxxReaction entity;
1198
+ entity.read_raw(parser, true);
1199
+ Reactions[entity.Get_n_user()] = entity;
1200
+ entity_number = entity.Get_n_user();
1201
+ }
1202
+ break;
1203
+
1204
+ case Keywords::KEY_MIX_RAW:
1205
+ {
1206
+ cxxMix entity;
1207
+ entity.read_raw(parser);
1208
+ Mixes[entity.Get_n_user()] = entity;
1209
+ entity_number = entity.Get_n_user();
1210
+ }
1211
+ break;
1212
+
1213
+ default:
1214
+ break;
1215
+ }
1216
+ return (entity_number); //PHRQ_io::LT_OK;
1217
+ }
1218
+
1219
+ void
1220
+ cxxStorageBin::Remove(int n)
1221
+ {
1222
+ // Solution
1223
+ this->Solutions.erase(n);
1224
+
1225
+ // Exchanger
1226
+ this->Exchangers.erase(n);
1227
+
1228
+ // GasPhase
1229
+ this->GasPhases.erase(n);
1230
+
1231
+ // Kinetics
1232
+ this->Kinetics.erase(n);
1233
+
1234
+ // PPassemblage
1235
+ this->PPassemblages.erase(n);
1236
+
1237
+ // SSassemblage
1238
+ this->SSassemblages.erase(n);
1239
+
1240
+ // Surface
1241
+ this->Surfaces.erase(n);
1242
+
1243
+ // Mixes
1244
+ this->Mixes.erase(n);
1245
+
1246
+ // Reactions
1247
+ this->Reactions.erase(n);
1248
+
1249
+ // Temperature
1250
+ this->Temperatures.erase(n);
1251
+
1252
+ // Pressure
1253
+ this->Pressures.erase(n);
1254
+ }
1255
+ void
1256
+ cxxStorageBin::Clear(void)
1257
+ {
1258
+ // Delete all data
1259
+
1260
+ // Solutions
1261
+ this->Solutions.clear();
1262
+
1263
+ // Exchange
1264
+ this->Exchangers.clear();
1265
+
1266
+ // Gas Phases
1267
+ this->GasPhases.clear();
1268
+
1269
+ // Kinetics
1270
+ this->Kinetics.clear();
1271
+
1272
+ // PPassemblage
1273
+ this->PPassemblages.clear();
1274
+
1275
+ // SSassemblage
1276
+ this->SSassemblages.clear();
1277
+
1278
+ // Surface
1279
+ this->Surfaces.clear();
1280
+
1281
+ // Mix
1282
+ this->Mixes.clear();
1283
+
1284
+ // Reactions
1285
+ this->Reactions.clear();
1286
+
1287
+ // Temperature
1288
+ this->Temperatures.clear();
1289
+
1290
+ // Pressure
1291
+ this->Pressures.clear();
1292
+ }
1293
+
1294
+ cxxSystem &
1295
+ cxxStorageBin::Get_System(void)
1296
+ {
1297
+ return this->system;
1298
+ }
1299
+
1300
+ void
1301
+ cxxStorageBin::Set_System(cxxUse *use_ptr)
1302
+ {
1303
+ // Initialize
1304
+ this->system.Initialize();
1305
+ // Solution
1306
+ if (use_ptr->Get_solution_ptr() != NULL)
1307
+ {
1308
+ std::map < int, cxxSolution >::iterator it =
1309
+ this->Solutions.find(use_ptr->Get_n_solution_user());
1310
+ if (it != this->Solutions.end())
1311
+ {
1312
+ this->system.Set_Solution(&(it->second));
1313
+ }
1314
+ }
1315
+ // Exchange
1316
+ if (use_ptr->Get_exchange_ptr() != NULL)
1317
+ {
1318
+ std::map < int, cxxExchange >::iterator it =
1319
+ this->Exchangers.find(use_ptr->Get_n_exchange_user());
1320
+ if (it != this->Exchangers.end())
1321
+ {
1322
+ this->system.Set_Exchange(&(it->second));
1323
+ }
1324
+ }
1325
+ // gas_phase
1326
+ if (use_ptr->Get_gas_phase_ptr() != NULL)
1327
+ {
1328
+ std::map < int, cxxGasPhase >::iterator it =
1329
+ this->GasPhases.find(use_ptr->Get_n_gas_phase_user());
1330
+ if (it != this->GasPhases.end())
1331
+ {
1332
+ this->system.Set_GasPhase(&(it->second));
1333
+ }
1334
+ }
1335
+ // kinetics
1336
+ if (use_ptr->Get_kinetics_ptr() != NULL)
1337
+ {
1338
+ std::map < int, cxxKinetics >::iterator it =
1339
+ this->Kinetics.find(use_ptr->Get_n_kinetics_user());
1340
+ if (it != this->Kinetics.end())
1341
+ {
1342
+ this->system.Set_Kinetics(&(it->second));
1343
+ }
1344
+ }
1345
+ // pp_assemblage
1346
+ if (use_ptr->Get_pp_assemblage_ptr() != NULL)
1347
+ {
1348
+ std::map < int, cxxPPassemblage >::iterator it =
1349
+ this->PPassemblages.find(use_ptr->Get_n_pp_assemblage_user());
1350
+ if (it != this->PPassemblages.end())
1351
+ {
1352
+ this->system.Set_PPassemblage(&(it->second));
1353
+ }
1354
+ }
1355
+ // ss_assemblage
1356
+ if (use_ptr->Get_ss_assemblage_ptr() != NULL)
1357
+ {
1358
+ std::map < int, cxxSSassemblage >::iterator it =
1359
+ this->SSassemblages.find(use_ptr->Get_n_ss_assemblage_user());
1360
+ if (it != this->SSassemblages.end())
1361
+ {
1362
+ this->system.Set_SSassemblage(&(it->second));
1363
+ }
1364
+ }
1365
+ // surface
1366
+ if (use_ptr->Get_surface_ptr() != NULL)
1367
+ {
1368
+ std::map < int, cxxSurface >::iterator it =
1369
+ this->Surfaces.find(use_ptr->Get_n_surface_user());
1370
+ if (it != this->Surfaces.end())
1371
+ {
1372
+ this->system.Set_Surface(&(it->second));
1373
+ }
1374
+ }
1375
+ // mix
1376
+ if (use_ptr->Get_mix_ptr() != NULL)
1377
+ {
1378
+ std::map < int, cxxMix >::iterator it =
1379
+ this->Mixes.find(use_ptr->Get_n_mix_user());
1380
+ if (it != this->Mixes.end())
1381
+ {
1382
+ this->system.Set_Mix(&(it->second));
1383
+ }
1384
+ }
1385
+ // reaction
1386
+ if (use_ptr->Get_reaction_ptr() != NULL)
1387
+ {
1388
+ std::map < int, cxxReaction >::iterator it =
1389
+ this->Reactions.find(use_ptr->Get_n_reaction_user());
1390
+ if (it != this->Reactions.end())
1391
+ {
1392
+ this->system.Set_Reaction(&(it->second));
1393
+ }
1394
+ }
1395
+ // reaction temperature
1396
+ if (use_ptr->Get_temperature_ptr() != NULL)
1397
+ {
1398
+ std::map < int, cxxTemperature >::iterator it =
1399
+ this->Temperatures.find(use_ptr->Get_n_temperature_user());
1400
+ if (it != this->Temperatures.end())
1401
+ {
1402
+ this->system.Set_Temperature(&(it->second));
1403
+ }
1404
+ }
1405
+ // reaction pressure
1406
+ if (use_ptr->Get_pressure_ptr() != NULL)
1407
+ {
1408
+ cxxPressure * p = Utilities::Rxn_find(this->Pressures, use_ptr->Get_n_pressure_user());
1409
+ if (p != NULL)
1410
+ {
1411
+ this->system.Set_Pressure(p);
1412
+ }
1413
+ }
1414
+ }
1415
+ void
1416
+ cxxStorageBin::Set_System(int i)
1417
+ {
1418
+ // Initialize
1419
+ this->system.Initialize();
1420
+ // Solution
1421
+ {
1422
+ std::map < int, cxxSolution >::iterator it = this->Solutions.find(i);
1423
+ if (it != this->Solutions.end())
1424
+ {
1425
+ this->system.Set_Solution(&(it->second));
1426
+ }
1427
+ }
1428
+
1429
+ // Exchange
1430
+ {
1431
+ std::map < int, cxxExchange >::iterator it = this->Exchangers.find(i);
1432
+ if (it != this->Exchangers.end())
1433
+ {
1434
+ this->system.Set_Exchange(&(it->second));
1435
+ }
1436
+ }
1437
+
1438
+ // gas_phase
1439
+ {
1440
+ std::map < int, cxxGasPhase >::iterator it = this->GasPhases.find(i);
1441
+ if (it != this->GasPhases.end())
1442
+ {
1443
+ this->system.Set_GasPhase(&(it->second));
1444
+ }
1445
+ }
1446
+ // kinetics
1447
+ {
1448
+ std::map < int, cxxKinetics >::iterator it = this->Kinetics.find(i);
1449
+ if (it != this->Kinetics.end())
1450
+ {
1451
+ this->system.Set_Kinetics(&(it->second));
1452
+ }
1453
+ }
1454
+ // pp_assemblage
1455
+ {
1456
+ std::map < int, cxxPPassemblage >::iterator it = this->PPassemblages.find(i);
1457
+ if (it != this->PPassemblages.end())
1458
+ {
1459
+ this->system.Set_PPassemblage(&(it->second));
1460
+ }
1461
+ }
1462
+ // ss_assemblage
1463
+ {
1464
+ std::map < int, cxxSSassemblage >::iterator it = this->SSassemblages.find(i);
1465
+ if (it != this->SSassemblages.end())
1466
+ {
1467
+ this->system.Set_SSassemblage(&(it->second));
1468
+ }
1469
+ }
1470
+ // surface
1471
+ {
1472
+ std::map < int, cxxSurface >::iterator it = this->Surfaces.find(i);
1473
+ if (it != this->Surfaces.end())
1474
+ {
1475
+ this->system.Set_Surface(&(it->second));
1476
+ }
1477
+ }
1478
+ // mix
1479
+ {
1480
+ std::map < int, cxxMix >::iterator it = this->Mixes.find(i);
1481
+ if (it != this->Mixes.end())
1482
+ {
1483
+ this->system.Set_Mix(&(it->second));
1484
+ }
1485
+ }
1486
+ // reaction
1487
+ {
1488
+ std::map < int, cxxReaction >::iterator it = this->Reactions.find(i);
1489
+ if (it != this->Reactions.end())
1490
+ {
1491
+ this->system.Set_Reaction(&(it->second));
1492
+ }
1493
+ }
1494
+ // reaction temperature
1495
+ {
1496
+ std::map < int, cxxTemperature >::iterator it = this->Temperatures.find(i);
1497
+ if (it != this->Temperatures.end())
1498
+ {
1499
+ this->system.Set_Temperature(&(it->second));
1500
+ }
1501
+ }
1502
+
1503
+ // reaction pressure
1504
+ {
1505
+ this->system.Set_Pressure(Utilities::Rxn_find(this->Pressures, i));
1506
+ }
1507
+ }