pyEQL 1.4.0rc9__cp311-cp311-win_amd64.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 (519) hide show
  1. pyEQL/__init__.py +50 -0
  2. pyEQL/_phreeqc.cp311-win_amd64.pyd +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/ALL_BUILD.vcxproj +185 -0
  46. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/ALL_BUILD.vcxproj.filters +8 -0
  47. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/generate.stamp +1 -0
  48. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CMakeFiles/generate.stamp.depend +79 -0
  49. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/CTestTestfile.cmake +6 -0
  50. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/Continuous.vcxproj +240 -0
  51. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/Continuous.vcxproj.filters +17 -0
  52. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/DartConfiguration.tcl +109 -0
  53. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/Experimental.vcxproj +240 -0
  54. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/Experimental.vcxproj.filters +17 -0
  55. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/INSTALL.vcxproj +209 -0
  56. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/INSTALL.vcxproj.filters +13 -0
  57. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/IPhreeqc.dir/Release/CSelectedOutput.obj +0 -0
  58. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/IPhreeqc.dir/Release/Dictionary.obj +0 -0
  59. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/IPhreeqc.dir/Release/ExchComp.obj +0 -0
  60. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/IPhreeqc.dir/Release/Exchange.obj +0 -0
  61. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/IPhreeqc.dir/Release/GasComp.obj +0 -0
  62. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/IPhreeqc.dir/Release/GasPhase.obj +0 -0
  63. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/IPhreeqc.dir/Release/IPhreeqc.lib.recipe +11 -0
  64. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/IPhreeqc.dir/Release/IPhreeqc.obj +0 -0
  65. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/IPhreeqc.dir/Release/IPhreeqc.tlog/CL.command.1.tlog +0 -0
  66. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/IPhreeqc.dir/Release/IPhreeqc.tlog/CL.read.1.tlog +0 -0
  67. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/IPhreeqc.dir/Release/IPhreeqc.tlog/CL.write.1.tlog +0 -0
  68. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/IPhreeqc.dir/Release/IPhreeqc.tlog/Cl.items.tlog +82 -0
  69. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/IPhreeqc.dir/Release/IPhreeqc.tlog/CustomBuild.command.1.tlog +10 -0
  70. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/IPhreeqc.dir/Release/IPhreeqc.tlog/CustomBuild.read.1.tlog +78 -0
  71. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/IPhreeqc.dir/Release/IPhreeqc.tlog/CustomBuild.write.1.tlog +2 -0
  72. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/IPhreeqc.dir/Release/IPhreeqc.tlog/IPhreeqc.lastbuildstate +2 -0
  73. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/IPhreeqc.dir/Release/IPhreeqc.tlog/Lib-link.read.1.tlog +0 -0
  74. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/IPhreeqc.dir/Release/IPhreeqc.tlog/Lib-link.write.1.tlog +0 -0
  75. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/IPhreeqc.dir/Release/IPhreeqc.tlog/Lib.command.1.tlog +0 -0
  76. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/IPhreeqc.dir/Release/IPhreeqcLib.obj +0 -0
  77. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/IPhreeqc.dir/Release/IPhreeqc_interface_F.obj +0 -0
  78. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/IPhreeqc.dir/Release/ISolution.obj +0 -0
  79. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/IPhreeqc.dir/Release/ISolutionComp.obj +0 -0
  80. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/IPhreeqc.dir/Release/Keywords.obj +0 -0
  81. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/IPhreeqc.dir/Release/KineticsComp.obj +0 -0
  82. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/IPhreeqc.dir/Release/NameDouble.obj +0 -0
  83. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/IPhreeqc.dir/Release/NumKeyword.obj +0 -0
  84. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/IPhreeqc.dir/Release/PBasic.obj +0 -0
  85. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/IPhreeqc.dir/Release/PHRQ_base.obj +0 -0
  86. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/IPhreeqc.dir/Release/PHRQ_io.obj +0 -0
  87. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/IPhreeqc.dir/Release/PHRQ_io_output.obj +0 -0
  88. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/IPhreeqc.dir/Release/PPassemblage.obj +0 -0
  89. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/IPhreeqc.dir/Release/PPassemblageComp.obj +0 -0
  90. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/IPhreeqc.dir/Release/Parser.obj +0 -0
  91. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/IPhreeqc.dir/Release/Phreeqc.obj +0 -0
  92. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/IPhreeqc.dir/Release/Pressure.obj +0 -0
  93. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/IPhreeqc.dir/Release/Reaction.obj +0 -0
  94. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/IPhreeqc.dir/Release/ReadClass.obj +0 -0
  95. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/IPhreeqc.dir/Release/SS.obj +0 -0
  96. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/IPhreeqc.dir/Release/SSassemblage.obj +0 -0
  97. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/IPhreeqc.dir/Release/SScomp.obj +0 -0
  98. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/IPhreeqc.dir/Release/SelectedOutput.obj +0 -0
  99. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/IPhreeqc.dir/Release/Serializer.obj +0 -0
  100. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/IPhreeqc.dir/Release/Solution.obj +0 -0
  101. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/IPhreeqc.dir/Release/SolutionIsotope.obj +0 -0
  102. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/IPhreeqc.dir/Release/StorageBin.obj +0 -0
  103. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/IPhreeqc.dir/Release/StorageBinList.obj +0 -0
  104. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/IPhreeqc.dir/Release/Surface.obj +0 -0
  105. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/IPhreeqc.dir/Release/SurfaceCharge.obj +0 -0
  106. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/IPhreeqc.dir/Release/SurfaceComp.obj +0 -0
  107. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/IPhreeqc.dir/Release/System.obj +0 -0
  108. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/IPhreeqc.dir/Release/Temperature.obj +0 -0
  109. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/IPhreeqc.dir/Release/Use.obj +0 -0
  110. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/IPhreeqc.dir/Release/UserPunch.obj +0 -0
  111. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/IPhreeqc.dir/Release/Utils.obj +0 -0
  112. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/IPhreeqc.dir/Release/Var.obj +0 -0
  113. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/IPhreeqc.dir/Release/advection.obj +0 -0
  114. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/IPhreeqc.dir/Release/basicsubs.obj +0 -0
  115. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/IPhreeqc.dir/Release/cl1.obj +0 -0
  116. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/IPhreeqc.dir/Release/cvdense.obj +0 -0
  117. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/IPhreeqc.dir/Release/cvode.obj +0 -0
  118. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/IPhreeqc.dir/Release/cxxKinetics.obj +0 -0
  119. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/IPhreeqc.dir/Release/cxxMix.obj +0 -0
  120. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/IPhreeqc.dir/Release/dense.obj +0 -0
  121. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/IPhreeqc.dir/Release/dumper.obj +0 -0
  122. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/IPhreeqc.dir/Release/gases.obj +0 -0
  123. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/IPhreeqc.dir/Release/input.obj +0 -0
  124. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/IPhreeqc.dir/Release/integrate.obj +0 -0
  125. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/IPhreeqc.dir/Release/inverse.obj +0 -0
  126. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/IPhreeqc.dir/Release/isotopes.obj +0 -0
  127. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/IPhreeqc.dir/Release/kinetics.obj +0 -0
  128. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/IPhreeqc.dir/Release/mainsubs.obj +0 -0
  129. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/IPhreeqc.dir/Release/model.obj +0 -0
  130. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/IPhreeqc.dir/Release/nvector.obj +0 -0
  131. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/IPhreeqc.dir/Release/nvector_serial.obj +0 -0
  132. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/IPhreeqc.dir/Release/parse.obj +0 -0
  133. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/IPhreeqc.dir/Release/phqalloc.obj +0 -0
  134. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/IPhreeqc.dir/Release/pitzer.obj +0 -0
  135. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/IPhreeqc.dir/Release/pitzer_structures.obj +0 -0
  136. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/IPhreeqc.dir/Release/prep.obj +0 -0
  137. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/IPhreeqc.dir/Release/print.obj +0 -0
  138. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/IPhreeqc.dir/Release/read.obj +0 -0
  139. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/IPhreeqc.dir/Release/readtr.obj +0 -0
  140. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/IPhreeqc.dir/Release/runner.obj +0 -0
  141. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/IPhreeqc.dir/Release/sit.obj +0 -0
  142. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/IPhreeqc.dir/Release/smalldense.obj +0 -0
  143. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/IPhreeqc.dir/Release/spread.obj +0 -0
  144. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/IPhreeqc.dir/Release/step.obj +0 -0
  145. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/IPhreeqc.dir/Release/structures.obj +0 -0
  146. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/IPhreeqc.dir/Release/sundialsmath.obj +0 -0
  147. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/IPhreeqc.dir/Release/tally.obj +0 -0
  148. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/IPhreeqc.dir/Release/tidy.obj +0 -0
  149. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/IPhreeqc.dir/Release/transport.obj +0 -0
  150. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/IPhreeqc.dir/Release/utilities.obj +0 -0
  151. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/IPhreeqc.sln +116 -0
  152. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/IPhreeqc.vcxproj +443 -0
  153. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/IPhreeqc.vcxproj.filters +456 -0
  154. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/Nightly.vcxproj +240 -0
  155. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/Nightly.vcxproj.filters +17 -0
  156. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/NightlyMemoryCheck.vcxproj +240 -0
  157. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/NightlyMemoryCheck.vcxproj.filters +17 -0
  158. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/Release/IPhreeqc.lib +0 -0
  159. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/build/cmake_install.cmake +40 -0
  160. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/config/ar-lib +270 -0
  161. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/config/compile +347 -0
  162. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/config/config.guess +1441 -0
  163. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/config/config.sub +1813 -0
  164. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/config/depcomp +791 -0
  165. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/config/install-sh +508 -0
  166. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/config/ltmain.sh +11156 -0
  167. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/config/missing +215 -0
  168. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/config/test-driver +148 -0
  169. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/configure +23867 -0
  170. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/configure.ac +136 -0
  171. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/database/Amm.dat +1968 -0
  172. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/database/CMakeLists.txt +32 -0
  173. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/database/ColdChem.dat +267 -0
  174. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/database/Concrete_PHR.dat +158 -0
  175. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/database/Concrete_PZ.dat +195 -0
  176. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/database/Kinec.v2.dat +12039 -0
  177. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/database/Kinec_v3.dat +12159 -0
  178. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/database/Makefile.am +28 -0
  179. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/database/Makefile.in +530 -0
  180. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/database/PHREEQC_ThermoddemV1.10_15Dec2020.dat +12965 -0
  181. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/database/Tipping_Hurley.dat +4137 -0
  182. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/database/core10.dat +6824 -0
  183. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/database/frezchem.dat +634 -0
  184. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/database/iso.dat +7235 -0
  185. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/database/llnl.dat +19310 -0
  186. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/database/minteq.dat +5654 -0
  187. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/database/minteq.v4.dat +13212 -0
  188. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/database/phreeqc.dat +1972 -0
  189. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/database/phreeqc_rates.dat +3158 -0
  190. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/database/pitzer.dat +1044 -0
  191. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/database/sit.dat +14348 -0
  192. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/database/wateq4f.dat +4036 -0
  193. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/CMakeLists.txt +35 -0
  194. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/IPhreeqc.pdf +0 -0
  195. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/Makefile.am +24 -0
  196. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/Makefile.in +545 -0
  197. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/NOTICE +51 -0
  198. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/Phreeqc_2_1999_manual.pdf +0 -0
  199. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/Phreeqc_3_2013_manual.pdf +0 -0
  200. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/README +428 -0
  201. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/RELEASE +7294 -0
  202. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/IPhreeqc_8h.html +5096 -0
  203. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/IPhreeqc_8h_source.html +389 -0
  204. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/IPhreeqc_8hpp.html +83 -0
  205. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/IPhreeqc_8hpp_source.html +478 -0
  206. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/Var_8h.html +318 -0
  207. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/Var_8h_source.html +200 -0
  208. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/bc_s.png +0 -0
  209. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/bdwn.png +0 -0
  210. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/classIPhreeqc.html +2274 -0
  211. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/classIPhreeqc.png +0 -0
  212. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/classIPhreeqcStop.html +69 -0
  213. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/classIPhreeqcStop.png +0 -0
  214. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/closed.png +0 -0
  215. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/dir_68267d1309a1af8e8297ef4c3efbcdba.html +68 -0
  216. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/doxygen.css +1440 -0
  217. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/doxygen.png +0 -0
  218. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/dynsections.js +97 -0
  219. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/ftv2blank.png +0 -0
  220. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/ftv2doc.png +0 -0
  221. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/ftv2folderclosed.png +0 -0
  222. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/ftv2folderopen.png +0 -0
  223. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/ftv2lastnode.png +0 -0
  224. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/ftv2link.png +0 -0
  225. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/ftv2mlastnode.png +0 -0
  226. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/ftv2mnode.png +0 -0
  227. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/ftv2node.png +0 -0
  228. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/ftv2plastnode.png +0 -0
  229. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/ftv2pnode.png +0 -0
  230. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/ftv2splitbar.png +0 -0
  231. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/ftv2vertline.png +0 -0
  232. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/index.html +58 -0
  233. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/jquery.js +31 -0
  234. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/nav_f.png +0 -0
  235. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/nav_g.png +0 -0
  236. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/nav_h.png +0 -0
  237. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/open.png +0 -0
  238. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/structVAR.html +143 -0
  239. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/sync_off.png +0 -0
  240. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/sync_on.png +0 -0
  241. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/tab_a.png +0 -0
  242. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/tab_b.png +0 -0
  243. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/tab_h.png +0 -0
  244. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/tab_s.png +0 -0
  245. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/html/tabs.css +60 -0
  246. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/doc/phreeqc3.chm +0 -0
  247. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/CMakeLists.txt +11 -0
  248. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/Makefile.am +88 -0
  249. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/Makefile.in +696 -0
  250. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/c/CMakeLists.txt +1 -0
  251. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/c/advect/CMakeLists.txt +35 -0
  252. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/c/advect/CMakeLists.txt.in +21 -0
  253. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/c/advect/README.txt +44 -0
  254. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/c/advect/advect.c +101 -0
  255. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/c/advect/ic +17 -0
  256. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/c/advect/phreeqc.dat +1579 -0
  257. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/com/CMakeLists.txt +10 -0
  258. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/com/README.txt +3 -0
  259. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/com/excel/CMakeLists.txt +9 -0
  260. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/com/excel/phreeqc.dat +1582 -0
  261. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/com/excel/runphreeqc.xls +0 -0
  262. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/com/excel/withcallback.xls +0 -0
  263. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/com/python/CMakeLists.txt +11 -0
  264. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/com/python/Gypsum.py +52 -0
  265. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/com/python/parallel_advect.py +465 -0
  266. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/com/python/phreeqc.dat +1582 -0
  267. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/com/python/pitzer.dat +790 -0
  268. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/com/python/wateq4f.dat +3846 -0
  269. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/cpp/CMakeLists.txt +1 -0
  270. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/cpp/advect/CMakeLists.txt +35 -0
  271. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/cpp/advect/CMakeLists.txt.in +20 -0
  272. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/cpp/advect/README.txt +45 -0
  273. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/cpp/advect/advect.cpp +110 -0
  274. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/cpp/advect/ic +17 -0
  275. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/cpp/advect/phreeqc.dat +1579 -0
  276. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/fortran/CMakeLists.txt +1 -0
  277. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/fortran/advect/CMakeLists.txt +44 -0
  278. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/fortran/advect/CMakeLists.txt.in +24 -0
  279. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/fortran/advect/README.txt +45 -0
  280. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/fortran/advect/advect.F90 +102 -0
  281. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/fortran/advect/ic +17 -0
  282. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/fortran/advect/phreeqc.dat +1579 -0
  283. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/using-cmake/CMakeLists.txt +26 -0
  284. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/using-cmake/CMakeLists.txt.in +20 -0
  285. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/using-cmake/README.txt +37 -0
  286. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/using-cmake/ex2 +26 -0
  287. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/using-cmake/main.cpp +20 -0
  288. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/using-cmake/phreeqc.dat +1837 -0
  289. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/examples/using-cmake/post-install.cmake.in +7 -0
  290. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/gtest/CMakeLists.txt +185 -0
  291. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/gtest/FileTest.cpp +171 -0
  292. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/gtest/FileTest.h +34 -0
  293. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/gtest/Makefile.am +18 -0
  294. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/gtest/Makefile.in +466 -0
  295. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/gtest/TestCVar.cpp +9 -0
  296. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/gtest/TestIPhreeqc.cpp +4901 -0
  297. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/gtest/TestIPhreeqcLib.cpp +4644 -0
  298. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/gtest/TestSelectedOutput.cpp +669 -0
  299. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/gtest/TestVar.cpp +10 -0
  300. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/gtest/conv_fail.in +11 -0
  301. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/gtest/dump +42 -0
  302. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/gtest/iso.dat +7231 -0
  303. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/gtest/kinn20140218 +349 -0
  304. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/gtest/missing_e.dat +1556 -0
  305. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/gtest/multi_punch +105 -0
  306. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/gtest/multi_punch_no_set +102 -0
  307. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/gtest/phreeqc.dat.90a6449 +1935 -0
  308. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/gtest/phreeqc.dat.old +1556 -0
  309. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/m4/libtool.m4 +8388 -0
  310. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/m4/ltoptions.m4 +437 -0
  311. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/m4/ltsugar.m4 +124 -0
  312. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/m4/ltversion.m4 +23 -0
  313. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/m4/lt~obsolete.m4 +99 -0
  314. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/resource.h +14 -0
  315. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/CSelectedOutput.cpp +401 -0
  316. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/CSelectedOutput.hxx +77 -0
  317. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/CVar.hxx +162 -0
  318. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/Debug.h +12 -0
  319. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/ErrorReporter.hxx +70 -0
  320. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/IPhreeqc.cpp +1889 -0
  321. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/IPhreeqc.f.inc +91 -0
  322. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/IPhreeqc.f90.inc +603 -0
  323. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/IPhreeqc.h +2182 -0
  324. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/IPhreeqc.hpp +1027 -0
  325. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/IPhreeqcCallbacks.h +19 -0
  326. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/IPhreeqcF.f +653 -0
  327. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/IPhreeqcLib.cpp +1098 -0
  328. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/IPhreeqc_interface.F90 +1283 -0
  329. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/IPhreeqc_interface_F.cpp +535 -0
  330. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/IPhreeqc_interface_F.h +162 -0
  331. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/Makefile.am +210 -0
  332. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/Makefile.in +1294 -0
  333. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/README.Fortran +17 -0
  334. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/Var.c +84 -0
  335. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/Var.h +152 -0
  336. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/Version.h +36 -0
  337. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/fimpl.h +282 -0
  338. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/fwrap.cpp +646 -0
  339. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/fwrap.h +163 -0
  340. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/fwrap1.cpp +24 -0
  341. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/fwrap2.cpp +24 -0
  342. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/fwrap3.cpp +24 -0
  343. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/fwrap4.cpp +24 -0
  344. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/fwrap5.cpp +24 -0
  345. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/fwrap6.cpp +25 -0
  346. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/fwrap7.cpp +25 -0
  347. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/fwrap8.cpp +24 -0
  348. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/ChartHandler.cpp +225 -0
  349. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/ChartHandler.h +59 -0
  350. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/ChartObject.cpp +1382 -0
  351. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/ChartObject.h +444 -0
  352. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/CurveObject.cpp +42 -0
  353. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/CurveObject.h +79 -0
  354. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/Dictionary.cpp +41 -0
  355. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/Dictionary.h +28 -0
  356. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/ExchComp.cxx +398 -0
  357. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/ExchComp.h +117 -0
  358. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/Exchange.cxx +466 -0
  359. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/Exchange.h +74 -0
  360. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/Form1.h +1184 -0
  361. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/Form1.resX +36 -0
  362. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/GasComp.cxx +265 -0
  363. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/GasComp.h +59 -0
  364. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/GasPhase.cxx +659 -0
  365. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/GasPhase.h +103 -0
  366. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/ISolution.cxx +40 -0
  367. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/ISolution.h +53 -0
  368. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/ISolutionComp.cxx +202 -0
  369. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/ISolutionComp.h +138 -0
  370. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/KineticsComp.cxx +318 -0
  371. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/KineticsComp.h +81 -0
  372. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/NA.h +1 -0
  373. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/NameDouble.cxx +537 -0
  374. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/NameDouble.h +66 -0
  375. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/NumKeyword.cxx +190 -0
  376. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/NumKeyword.h +67 -0
  377. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/PBasic.cpp +8350 -0
  378. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/PBasic.h +572 -0
  379. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/PHRQ_io_output.cpp +411 -0
  380. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/PPassemblage.cxx +375 -0
  381. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/PPassemblage.h +70 -0
  382. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/PPassemblageComp.cxx +441 -0
  383. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/PPassemblageComp.h +83 -0
  384. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/Phreeqc.cpp +2087 -0
  385. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/Phreeqc.h +2164 -0
  386. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/PhreeqcKeywords/Keywords.cpp +242 -0
  387. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/PhreeqcKeywords/Keywords.h +104 -0
  388. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/Pressure.cxx +417 -0
  389. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/Pressure.h +43 -0
  390. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/Reaction.cxx +284 -0
  391. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/Reaction.h +57 -0
  392. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/ReadClass.cxx +1150 -0
  393. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/SS.cxx +609 -0
  394. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/SS.h +128 -0
  395. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/SSassemblage.cxx +317 -0
  396. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/SSassemblage.h +59 -0
  397. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/SScomp.cxx +297 -0
  398. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/SScomp.h +66 -0
  399. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/SelectedOutput.cpp +115 -0
  400. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/SelectedOutput.h +209 -0
  401. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/Serializer.cxx +213 -0
  402. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/Serializer.h +42 -0
  403. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/Solution.cxx +1795 -0
  404. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/Solution.h +154 -0
  405. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/SolutionIsotope.cxx +333 -0
  406. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/SolutionIsotope.h +85 -0
  407. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/StorageBin.cxx +1507 -0
  408. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/StorageBin.h +141 -0
  409. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/StorageBinList.cpp +358 -0
  410. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/StorageBinList.h +81 -0
  411. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/Surface.cxx +837 -0
  412. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/Surface.h +108 -0
  413. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/SurfaceCharge.cxx +617 -0
  414. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/SurfaceCharge.h +137 -0
  415. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/SurfaceComp.cxx +509 -0
  416. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/SurfaceComp.h +70 -0
  417. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/System.cxx +103 -0
  418. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/System.h +89 -0
  419. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/Temperature.cxx +423 -0
  420. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/Temperature.h +42 -0
  421. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/Use.cpp +78 -0
  422. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/Use.h +159 -0
  423. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/UserPunch.cpp +32 -0
  424. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/UserPunch.h +39 -0
  425. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/ZedGraph.dll +0 -0
  426. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/advection.cpp +140 -0
  427. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/basicsubs.cpp +4333 -0
  428. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/cl1.cpp +881 -0
  429. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/common/PHRQ_base.cxx +117 -0
  430. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/common/PHRQ_base.h +48 -0
  431. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/common/PHRQ_exports.h +20 -0
  432. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/common/PHRQ_io.cpp +914 -0
  433. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/common/PHRQ_io.h +207 -0
  434. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/common/Parser.cxx +1331 -0
  435. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/common/Parser.h +310 -0
  436. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/common/Utils.cxx +263 -0
  437. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/common/Utils.h +29 -0
  438. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/common/phrqtype.h +18 -0
  439. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/cvdense.cpp +566 -0
  440. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/cvdense.h +267 -0
  441. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/cvode.cpp +3939 -0
  442. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/cvode.h +940 -0
  443. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/cxxKinetics.cxx +617 -0
  444. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/cxxKinetics.h +78 -0
  445. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/cxxMix.cxx +154 -0
  446. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/cxxMix.h +58 -0
  447. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/dense.cpp +175 -0
  448. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/dense.h +341 -0
  449. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/dumper.cpp +277 -0
  450. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/dumper.h +60 -0
  451. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/gases.cpp +748 -0
  452. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/global_structures.h +1672 -0
  453. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/input.cpp +133 -0
  454. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/integrate.cpp +1219 -0
  455. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/inverse.cpp +5135 -0
  456. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/isotopes.cpp +1813 -0
  457. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/kinetics.cpp +3180 -0
  458. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/mainsubs.cpp +2320 -0
  459. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/model.cpp +5843 -0
  460. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/nvector.cpp +272 -0
  461. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/nvector.h +485 -0
  462. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/nvector_serial.cpp +1032 -0
  463. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/nvector_serial.h +369 -0
  464. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/parse.cpp +1044 -0
  465. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/phqalloc.cpp +316 -0
  466. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/phqalloc.h +47 -0
  467. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/pitzer.cpp +2709 -0
  468. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/pitzer_structures.cpp +225 -0
  469. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/prep.cpp +6267 -0
  470. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/print.cpp +3673 -0
  471. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/read.cpp +10245 -0
  472. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/readtr.cpp +1495 -0
  473. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/runner.cpp +158 -0
  474. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/runner.h +33 -0
  475. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/sit.cpp +1684 -0
  476. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/smalldense.cpp +324 -0
  477. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/smalldense.h +261 -0
  478. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/spread.cpp +1309 -0
  479. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/step.cpp +1566 -0
  480. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/structures.cpp +3381 -0
  481. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/sundialsmath.cpp +133 -0
  482. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/sundialsmath.h +162 -0
  483. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/sundialstypes.h +183 -0
  484. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/tally.cpp +1288 -0
  485. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/tidy.cpp +5600 -0
  486. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/transport.cpp +6403 -0
  487. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/phreeqcpp/utilities.cpp +1339 -0
  488. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/src/thread.h +64 -0
  489. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/tests/CMakeLists.txt +133 -0
  490. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/tests/Makefile.am +45 -0
  491. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/tests/Makefile.in +1128 -0
  492. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/tests/ex2.in +26 -0
  493. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/tests/main.f90 +31 -0
  494. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/tests/main77.f +6 -0
  495. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/tests/main_fortran.cxx +8 -0
  496. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/tests/phreeqc.dat.in +1556 -0
  497. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/tests/test_c.c +148 -0
  498. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/tests/test_cxx.cxx +152 -0
  499. pyEQL/phreeqc/ext/iphreeqc-3.8.6-17100/tests/test_f90.F90 +328 -0
  500. pyEQL/phreeqc/iphreeqc_wrapper.cpp +75 -0
  501. pyEQL/phreeqc/solution.py +74 -0
  502. pyEQL/phreeqc/var.py +50 -0
  503. pyEQL/presets/Ringers lactate.yaml +20 -0
  504. pyEQL/presets/__init__.py +17 -0
  505. pyEQL/presets/normal saline.yaml +17 -0
  506. pyEQL/presets/rainwater.yaml +17 -0
  507. pyEQL/presets/seawater.yaml +29 -0
  508. pyEQL/presets/urine.yaml +26 -0
  509. pyEQL/presets/wastewater.yaml +21 -0
  510. pyEQL/py.typed +0 -0
  511. pyEQL/salt_ion_match.py +112 -0
  512. pyEQL/solute.py +163 -0
  513. pyEQL/solution.py +2714 -0
  514. pyEQL/utils.py +237 -0
  515. pyeql-1.4.0rc9.dist-info/METADATA +130 -0
  516. pyeql-1.4.0rc9.dist-info/RECORD +519 -0
  517. pyeql-1.4.0rc9.dist-info/WHEEL +5 -0
  518. pyeql-1.4.0rc9.dist-info/licenses/AUTHORS.md +21 -0
  519. pyeql-1.4.0rc9.dist-info/licenses/LICENSE.txt +20 -0
@@ -0,0 +1,1032 @@
1
+ /**************************************************************************
2
+ * *
3
+ * File : nvector_serial.c *
4
+ * Programmers : Scott D. Cohen, Alan C. Hindmarsh, *
5
+ * Radu Serban, and Allan G. Taylor, LLNL *
6
+ * Version of : 26 June 2002 *
7
+ *------------------------------------------------------------------------*
8
+ * Copyright (c) 2002, The Regents of the University of California *
9
+ * Produced at the Lawrence Livermore National Laboratory *
10
+ * All rights reserved *
11
+ * For details, see LICENSE below *
12
+ *------------------------------------------------------------------------*
13
+ * This is the implementation file for a serial implementation *
14
+ * of the NVECTOR package. It contains the implementation of *
15
+ * the serial machine environment initialization and free *
16
+ * routines (and of the Fortran callable interfaces to them) *
17
+ * and of the N_Vector kernels listed in nvector_serial.h. *
18
+ * *
19
+ *------------------------------------------------------------------------*
20
+ * LICENSE *
21
+ *------------------------------------------------------------------------*
22
+ * Copyright (c) 2002, The Regents of the University of California. *
23
+ * Produced at the Lawrence Livermore National Laboratory. *
24
+ * Written by S.D. Cohen, A.C. Hindmarsh, R. Serban, *
25
+ * D. Shumaker, and A.G. Taylor. *
26
+ * UCRL-CODE-155951 (CVODE) *
27
+ * UCRL-CODE-155950 (CVODES) *
28
+ * UCRL-CODE-155952 (IDA) *
29
+ * UCRL-CODE-237203 (IDAS) *
30
+ * UCRL-CODE-155953 (KINSOL) *
31
+ * All rights reserved. *
32
+ * *
33
+ * This file is part of SUNDIALS. *
34
+ * *
35
+ * Redistribution and use in source and binary forms, with or without *
36
+ * modification, are permitted provided that the following conditions *
37
+ * are met: *
38
+ * *
39
+ * 1. Redistributions of source code must retain the above copyright *
40
+ * notice, this list of conditions and the disclaimer below. *
41
+ * *
42
+ * 2. Redistributions in binary form must reproduce the above copyright *
43
+ * notice, this list of conditions and the disclaimer (as noted below) *
44
+ * in the documentation and/or other materials provided with the *
45
+ * distribution. *
46
+ * *
47
+ * 3. Neither the name of the UC/LLNL nor the names of its contributors *
48
+ * may be used to endorse or promote products derived from this software *
49
+ * without specific prior written permission. *
50
+ * *
51
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS *
52
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT *
53
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS *
54
+ * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE *
55
+ * REGENTS OF THE UNIVERSITY OF CALIFORNIA, THE U.S. DEPARTMENT OF ENERGY *
56
+ * OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, *
57
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT *
58
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, *
59
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY *
60
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT *
61
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE *
62
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. *
63
+ **************************************************************************/
64
+ #include <stdio.h>
65
+ #include <stdlib.h>
66
+ #include <string.h>
67
+ #include "nvector_serial.h"
68
+ #include "sundialstypes.h"
69
+ #include "sundialsmath.h"
70
+ #include "Utils.h"
71
+
72
+ /* WARNING don`t include any headers below here */
73
+
74
+ #define ZERO RCONST(0.0)
75
+ #define HALF RCONST(0.5)
76
+ #define ONE RCONST(1.0)
77
+ #define ONEPT5 RCONST(1.5)
78
+
79
+
80
+ /* Private Helper Prototypes */
81
+ /* z=x */
82
+ static void VCopy_Serial(N_Vector x, N_Vector z);
83
+ /* z=x+y */
84
+ static void VSum_Serial(N_Vector x, N_Vector y, N_Vector z);
85
+ /* z=x-y */
86
+ static void VDiff_Serial(N_Vector x, N_Vector y, N_Vector z);
87
+ /* z=-x */
88
+ static void VNeg_Serial(N_Vector x, N_Vector z);
89
+ /* z=c(x+y) */
90
+ static void VScaleSum_Serial(realtype c, N_Vector x, N_Vector y, N_Vector z);
91
+ /* z=c(x-y) */
92
+ static void VScaleDiff_Serial(realtype c, N_Vector x, N_Vector y, N_Vector z);
93
+ /* z=ax+y */
94
+ static void VLin1_Serial(realtype a, N_Vector x, N_Vector y, N_Vector z);
95
+ /* z=ax-y */
96
+ static void VLin2_Serial(realtype a, N_Vector x, N_Vector y, N_Vector z);
97
+ /* y <- ax+y */
98
+ static void Vaxpy_Serial(realtype a, N_Vector x, N_Vector y);
99
+ /* x <- ax */
100
+ static void VScaleBy_Serial(realtype a, N_Vector x);
101
+
102
+ #if defined(PHREEQCI_GUI)
103
+ #ifdef _DEBUG
104
+ #define new DEBUG_NEW
105
+ #undef THIS_FILE
106
+ static char THIS_FILE[] = __FILE__;
107
+ #endif
108
+ #endif
109
+
110
+ /********************* Exported Functions ************************/
111
+
112
+ /* Serial implementation of the machine environment
113
+ initialization routine */
114
+
115
+ M_Env
116
+ M_EnvInit_Serial(integertype vec_length)
117
+ {
118
+ M_Env me;
119
+
120
+ /* Create machine environment structure */
121
+ me = (M_Env) malloc(sizeof *me);
122
+ if (me == NULL)
123
+ return (NULL);
124
+
125
+ /* Create serial content of machine environment structure */
126
+ me->content =
127
+ (M_EnvSerialContent) malloc(sizeof(struct _M_EnvSerialContent));
128
+ if (me->content == NULL)
129
+ {
130
+ free(me);
131
+ return (NULL);
132
+ }
133
+
134
+ /* Load serial content of machine environment structure */
135
+ ME_CONTENT_S(me)->length = vec_length;
136
+
137
+ /* Attach vector operations */
138
+ me->ops = (N_Vector_Ops) malloc(sizeof(struct _generic_N_Vector_Ops));
139
+ if (me->ops == NULL)
140
+ {
141
+ free(me->content);
142
+ free(me);
143
+ return (NULL);
144
+ }
145
+
146
+ me->ops->nvnew = N_VNew_Serial;
147
+ me->ops->nvnewS = N_VNew_S_Serial;
148
+ me->ops->nvfree = N_VFree_Serial;
149
+ me->ops->nvfreeS = N_VFree_S_Serial;
150
+ me->ops->nvmake = N_VMake_Serial;
151
+ me->ops->nvdispose = N_VDispose_Serial;
152
+ me->ops->nvgetdata = N_VGetData_Serial;
153
+ me->ops->nvsetdata = N_VSetData_Serial;
154
+ me->ops->nvlinearsum = N_VLinearSum_Serial;
155
+ me->ops->nvconst = N_VConst_Serial;
156
+ me->ops->nvprod = N_VProd_Serial;
157
+ me->ops->nvdiv = N_VDiv_Serial;
158
+ me->ops->nvscale = N_VScale_Serial;
159
+ me->ops->nvabs = N_VAbs_Serial;
160
+ me->ops->nvinv = N_VInv_Serial;
161
+ me->ops->nvaddconst = N_VAddConst_Serial;
162
+ me->ops->nvdotprod = N_VDotProd_Serial;
163
+ me->ops->nvmaxnorm = N_VMaxNorm_Serial;
164
+ me->ops->nvwrmsnorm = N_VWrmsNorm_Serial;
165
+ me->ops->nvmin = N_VMin_Serial;
166
+ me->ops->nvwl2norm = N_VWL2Norm_Serial;
167
+ me->ops->nvl1norm = N_VL1Norm_Serial;
168
+ me->ops->nvonemask = N_VOneMask_Serial;
169
+ me->ops->nvcompare = N_VCompare_Serial;
170
+ me->ops->nvinvtest = N_VInvTest_Serial;
171
+ me->ops->nvconstrprodpos = N_VConstrProdPos_Serial;
172
+ me->ops->nvconstrmask = N_VConstrMask_Serial;
173
+ me->ops->nvminquotient = N_VMinQuotient_Serial;
174
+ me->ops->nvprint = N_VPrint_Serial;
175
+
176
+ /* Attach ID tag */
177
+ Utilities::strcpy_safe(me->tag, 8, ID_TAG_S);
178
+
179
+ return (me);
180
+
181
+ }
182
+
183
+ /* Serial implementation of the machine environment
184
+ free routine */
185
+
186
+ void
187
+ M_EnvFree_Serial(M_Env machEnv)
188
+ {
189
+ if (machEnv == NULL)
190
+ return;
191
+
192
+ free(machEnv->content);
193
+ free(machEnv->ops);
194
+ free(machEnv);
195
+ }
196
+
197
+ /***************************************************************************/
198
+
199
+ /* BEGIN implementation of vector operations */
200
+
201
+ N_Vector
202
+ N_VNew_Serial(integertype n, M_Env machEnv)
203
+ {
204
+ N_Vector v;
205
+ integertype length;
206
+
207
+ if (n <= 0)
208
+ return (NULL);
209
+
210
+ if (machEnv == NULL)
211
+ return (NULL);
212
+
213
+ v = (N_Vector) malloc(sizeof *v);
214
+ if (v == NULL)
215
+ return (NULL);
216
+
217
+ v->content =
218
+ (N_VectorSerialContent) malloc(sizeof(struct _N_VectorSerialContent));
219
+ if (v->content == NULL)
220
+ {
221
+ free(v);
222
+ return (NULL);
223
+ }
224
+
225
+ length = ME_CONTENT_S(machEnv)->length;
226
+
227
+ NV_CONTENT_S(v)->data = (realtype *) malloc(length * sizeof(realtype));
228
+ if (NV_CONTENT_S(v)->data == NULL)
229
+ {
230
+ free(v->content);
231
+ free(v);
232
+ return (NULL);
233
+ }
234
+
235
+ NV_CONTENT_S(v)->length = length;
236
+
237
+ v->menv = machEnv;
238
+
239
+ return (v);
240
+ }
241
+
242
+
243
+ N_Vector_S
244
+ N_VNew_S_Serial(integertype ns, integertype n, M_Env machEnv)
245
+ {
246
+ N_Vector_S vs;
247
+ integertype is, j;
248
+
249
+
250
+ if (ns <= 0 || n <= 0)
251
+ return (NULL);
252
+
253
+ if (machEnv == NULL)
254
+ return (NULL);
255
+
256
+ vs = (N_Vector_S) malloc(ns * sizeof(N_Vector *));
257
+ if (vs == NULL)
258
+ return (NULL);
259
+
260
+ for (is = 0; is < ns; is++)
261
+ {
262
+ vs[is] = N_VNew_Serial(n, machEnv);
263
+ if (vs[is] == NULL)
264
+ {
265
+ for (j = 0; j < is; j++)
266
+ N_VFree_Serial(vs[j]);
267
+ free(vs);
268
+ return (NULL);
269
+ }
270
+ }
271
+
272
+ return (vs);
273
+ }
274
+
275
+
276
+ void
277
+ N_VFree_Serial(N_Vector v)
278
+ {
279
+ free(NV_DATA_S(v));
280
+ free(NV_CONTENT_S(v));
281
+ free(v);
282
+ }
283
+
284
+
285
+ void
286
+ N_VFree_S_Serial(integertype ns, N_Vector_S vs)
287
+ {
288
+ integertype is;
289
+
290
+ for (is = 0; is < ns; is++)
291
+ N_VFree_Serial(vs[is]);
292
+ free(vs);
293
+ }
294
+
295
+ N_Vector
296
+ N_VMake_Serial(integertype n, realtype * v_data, M_Env machEnv)
297
+ {
298
+ N_Vector v;
299
+ integertype length;
300
+
301
+ if (n <= 0)
302
+ return (NULL);
303
+
304
+ if (machEnv == NULL)
305
+ return (NULL);
306
+
307
+ v = (N_Vector) malloc(sizeof *v);
308
+ if (v == NULL)
309
+ return (NULL);
310
+
311
+ v->content =
312
+ (N_VectorSerialContent) malloc(sizeof(struct _N_VectorSerialContent));
313
+ if (v->content == NULL)
314
+ {
315
+ free(v);
316
+ return (NULL);
317
+ }
318
+
319
+ length = ME_CONTENT_S(machEnv)->length;
320
+
321
+ NV_CONTENT_S(v)->data = v_data;
322
+
323
+ NV_CONTENT_S(v)->length = length;
324
+
325
+ v->menv = machEnv;
326
+
327
+ return (v);
328
+ }
329
+
330
+ void
331
+ N_VDispose_Serial(N_Vector v)
332
+ {
333
+ free(NV_CONTENT_S(v));
334
+ free(v);
335
+ }
336
+
337
+ realtype *
338
+ N_VGetData_Serial(N_Vector v)
339
+ {
340
+ realtype *v_data;
341
+ v_data = NV_CONTENT_S(v)->data;
342
+ return (v_data);
343
+ }
344
+
345
+ void
346
+ N_VSetData_Serial(realtype * v_data, N_Vector v)
347
+ {
348
+ NV_CONTENT_S(v)->data = v_data;
349
+ }
350
+
351
+ void
352
+ N_VLinearSum_Serial(realtype a, N_Vector x, realtype b, N_Vector y,
353
+ N_Vector z)
354
+ {
355
+ integertype i, N;
356
+ realtype c, *xd, *yd, *zd;
357
+ N_Vector v1, v2;
358
+ booleantype test;
359
+
360
+ if ((b == ONE) && (z == y))
361
+ { /* BLAS usage: axpy y <- ax+y */
362
+ Vaxpy_Serial(a, x, y);
363
+ return;
364
+ }
365
+
366
+ if ((a == ONE) && (z == x))
367
+ { /* BLAS usage: axpy x <- by+x */
368
+ Vaxpy_Serial(b, y, x);
369
+ return;
370
+ }
371
+
372
+ /* Case: a == b == 1.0 */
373
+
374
+ if ((a == ONE) && (b == ONE))
375
+ {
376
+ VSum_Serial(x, y, z);
377
+ return;
378
+ }
379
+
380
+ /* Cases: (1) a == 1.0, b = -1.0, (2) a == -1.0, b == 1.0 */
381
+
382
+ /*if ((test = ((a == ONE) && (b == -ONE))) || ((a == -ONE) && (b == ONE))) { */
383
+ test = ((a == ONE) && (b == -ONE));
384
+ if (test || ((a == -ONE) && (b == ONE)))
385
+ {
386
+ v1 = test ? y : x;
387
+ v2 = test ? x : y;
388
+ VDiff_Serial(v2, v1, z);
389
+ return;
390
+ }
391
+
392
+ /* Cases: (1) a == 1.0, b == other or 0.0, (2) a == other or 0.0, b == 1.0 */
393
+ /* if a or b is 0.0, then user should have called N_VScale */
394
+
395
+ /*if ((test = (a == ONE)) || (b == ONE)) { */
396
+ test = (a == ONE);
397
+ if (test || (b == ONE))
398
+ {
399
+ c = test ? b : a;
400
+ v1 = test ? y : x;
401
+ v2 = test ? x : y;
402
+ VLin1_Serial(c, v1, v2, z);
403
+ return;
404
+ }
405
+
406
+ /* Cases: (1) a == -1.0, b != 1.0, (2) a != 1.0, b == -1.0 */
407
+
408
+ /*if ((test = (a == -ONE)) || (b == -ONE)) { */
409
+ test = (a == -ONE);
410
+ if (test || (b == -ONE))
411
+ {
412
+ c = test ? b : a;
413
+ v1 = test ? y : x;
414
+ v2 = test ? x : y;
415
+ VLin2_Serial(c, v1, v2, z);
416
+ return;
417
+ }
418
+
419
+ /* Case: a == b */
420
+ /* catches case both a and b are 0.0 - user should have called N_VConst */
421
+
422
+ if (a == b)
423
+ {
424
+ VScaleSum_Serial(a, x, y, z);
425
+ return;
426
+ }
427
+
428
+ /* Case: a == -b */
429
+
430
+ if (a == -b)
431
+ {
432
+ VScaleDiff_Serial(a, x, y, z);
433
+ return;
434
+ }
435
+
436
+ /* Do all cases not handled above:
437
+ (1) a == other, b == 0.0 - user should have called N_VScale
438
+ (2) a == 0.0, b == other - user should have called N_VScale
439
+ (3) a,b == other, a !=b, a != -b */
440
+
441
+ N = NV_LENGTH_S(x);
442
+ xd = NV_DATA_S(x);
443
+ yd = NV_DATA_S(y);
444
+ zd = NV_DATA_S(z);
445
+
446
+ for (i = 0; i < N; i++)
447
+ *zd++ = a * (*xd++) + b * (*yd++);
448
+ }
449
+
450
+
451
+ void
452
+ N_VConst_Serial(realtype c, N_Vector z)
453
+ {
454
+ integertype i, N;
455
+ realtype *zd;
456
+
457
+ N = NV_LENGTH_S(z);
458
+ zd = NV_DATA_S(z);
459
+
460
+ for (i = 0; i < N; i++)
461
+ *zd++ = c;
462
+ }
463
+
464
+
465
+ void
466
+ N_VProd_Serial(N_Vector x, N_Vector y, N_Vector z)
467
+ {
468
+ integertype i, N;
469
+ realtype *xd, *yd, *zd;
470
+
471
+ N = NV_LENGTH_S(x);
472
+ xd = NV_DATA_S(x);
473
+ yd = NV_DATA_S(y);
474
+ zd = NV_DATA_S(z);
475
+
476
+ for (i = 0; i < N; i++)
477
+ *zd++ = (*xd++) * (*yd++);
478
+ }
479
+
480
+
481
+ void
482
+ N_VDiv_Serial(N_Vector x, N_Vector y, N_Vector z)
483
+ {
484
+ integertype i, N;
485
+ realtype *xd, *yd, *zd;
486
+
487
+ N = NV_LENGTH_S(x);
488
+ xd = NV_DATA_S(x);
489
+ yd = NV_DATA_S(y);
490
+ zd = NV_DATA_S(z);
491
+
492
+ for (i = 0; i < N; i++)
493
+ *zd++ = (*xd++) / (*yd++);
494
+ }
495
+
496
+
497
+ void
498
+ N_VScale_Serial(realtype c, N_Vector x, N_Vector z)
499
+ {
500
+ integertype i, N;
501
+ realtype *xd, *zd;
502
+
503
+ if (z == x)
504
+ { /* BLAS usage: scale x <- cx */
505
+ VScaleBy_Serial(c, x);
506
+ return;
507
+ }
508
+
509
+ if (c == ONE)
510
+ {
511
+ VCopy_Serial(x, z);
512
+ }
513
+ else if (c == -ONE)
514
+ {
515
+ VNeg_Serial(x, z);
516
+ }
517
+ else
518
+ {
519
+ N = NV_LENGTH_S(x);
520
+ xd = NV_DATA_S(x);
521
+ zd = NV_DATA_S(z);
522
+ for (i = 0; i < N; i++)
523
+ *zd++ = c * (*xd++);
524
+ }
525
+ }
526
+
527
+
528
+ void
529
+ N_VAbs_Serial(N_Vector x, N_Vector z)
530
+ {
531
+ integertype i, N;
532
+ realtype *xd, *zd;
533
+
534
+ N = NV_LENGTH_S(x);
535
+ xd = NV_DATA_S(x);
536
+ zd = NV_DATA_S(z);
537
+
538
+ for (i = 0; i < N; i++, xd++, zd++)
539
+ *zd = ABS(*xd);
540
+ }
541
+
542
+
543
+ void
544
+ N_VInv_Serial(N_Vector x, N_Vector z)
545
+ {
546
+ integertype i, N;
547
+ realtype *xd, *zd;
548
+
549
+ N = NV_LENGTH_S(x);
550
+ xd = NV_DATA_S(x);
551
+ zd = NV_DATA_S(z);
552
+
553
+ for (i = 0; i < N; i++)
554
+ *zd++ = ONE / (*xd++);
555
+ }
556
+
557
+
558
+ void
559
+ N_VAddConst_Serial(N_Vector x, realtype b, N_Vector z)
560
+ {
561
+ integertype i, N;
562
+ realtype *xd, *zd;
563
+
564
+ N = NV_LENGTH_S(x);
565
+ xd = NV_DATA_S(x);
566
+ zd = NV_DATA_S(z);
567
+
568
+ for (i = 0; i < N; i++)
569
+ *zd++ = (*xd++) + b;
570
+ }
571
+
572
+
573
+ realtype
574
+ N_VDotProd_Serial(N_Vector x, N_Vector y)
575
+ {
576
+ integertype i, N;
577
+ realtype sum = ZERO, *xd, *yd;
578
+
579
+ N = NV_LENGTH_S(x);
580
+ xd = NV_DATA_S(x);
581
+ yd = NV_DATA_S(y);
582
+
583
+ for (i = 0; i < N; i++)
584
+ sum += (*xd++) * (*yd++);
585
+
586
+ return (sum);
587
+ }
588
+
589
+
590
+ realtype
591
+ N_VMaxNorm_Serial(N_Vector x)
592
+ {
593
+ integertype i, N;
594
+ realtype max = ZERO, *xd;
595
+
596
+ N = NV_LENGTH_S(x);
597
+ xd = NV_DATA_S(x);
598
+
599
+ for (i = 0; i < N; i++, xd++)
600
+ {
601
+ if (ABS(*xd) > max)
602
+ max = ABS(*xd);
603
+ }
604
+
605
+ return (max);
606
+ }
607
+
608
+
609
+ realtype
610
+ N_VWrmsNorm_Serial(N_Vector x, N_Vector w)
611
+ {
612
+ integertype i, N;
613
+ realtype sum = ZERO, prodi, *xd, *wd;
614
+
615
+ N = NV_LENGTH_S(x);
616
+ xd = NV_DATA_S(x);
617
+ wd = NV_DATA_S(w);
618
+
619
+ for (i = 0; i < N; i++)
620
+ {
621
+ prodi = (*xd++) * (*wd++);
622
+ sum += prodi * prodi;
623
+ }
624
+
625
+ return (RSqrt(sum / N));
626
+ }
627
+
628
+
629
+ realtype
630
+ N_VMin_Serial(N_Vector x)
631
+ {
632
+ integertype i, N;
633
+ realtype min, *xd;
634
+
635
+ N = NV_LENGTH_S(x);
636
+ xd = NV_DATA_S(x);
637
+
638
+ min = xd[0];
639
+
640
+ xd++;
641
+ for (i = 1; i < N; i++, xd++)
642
+ {
643
+ if ((*xd) < min)
644
+ min = *xd;
645
+ }
646
+
647
+ return (min);
648
+ }
649
+
650
+
651
+ realtype
652
+ N_VWL2Norm_Serial(N_Vector x, N_Vector w)
653
+ {
654
+ integertype i, N;
655
+ realtype sum = ZERO, prodi, *xd, *wd;
656
+
657
+ N = NV_LENGTH_S(x);
658
+ xd = NV_DATA_S(x);
659
+ wd = NV_DATA_S(w);
660
+
661
+ for (i = 0; i < N; i++)
662
+ {
663
+ prodi = (*xd++) * (*wd++);
664
+ sum += prodi * prodi;
665
+ }
666
+
667
+ return (RSqrt(sum));
668
+ }
669
+
670
+
671
+ realtype
672
+ N_VL1Norm_Serial(N_Vector x)
673
+ {
674
+ integertype i, N;
675
+ realtype sum = ZERO, *xd;
676
+
677
+ N = NV_LENGTH_S(x);
678
+ xd = NV_DATA_S(x);
679
+
680
+ for (i = 0; i < N; i++)
681
+ sum += ABS(xd[i]);
682
+
683
+ return (sum);
684
+ }
685
+
686
+
687
+ void
688
+ N_VOneMask_Serial(N_Vector x)
689
+ {
690
+ integertype i, N;
691
+ realtype *xd;
692
+
693
+ N = NV_LENGTH_S(x);
694
+ xd = NV_DATA_S(x);
695
+
696
+ for (i = 0; i < N; i++, xd++)
697
+ {
698
+ if (*xd != ZERO)
699
+ *xd = ONE;
700
+ }
701
+ }
702
+
703
+
704
+ void
705
+ N_VCompare_Serial(realtype c, N_Vector x, N_Vector z)
706
+ {
707
+ integertype i, N;
708
+ realtype *xd, *zd;
709
+
710
+ N = NV_LENGTH_S(x);
711
+ xd = NV_DATA_S(x);
712
+ zd = NV_DATA_S(z);
713
+
714
+ for (i = 0; i < N; i++, xd++, zd++)
715
+ {
716
+ *zd = (ABS(*xd) >= c) ? ONE : ZERO;
717
+ }
718
+ }
719
+
720
+
721
+ booleantype
722
+ N_VInvTest_Serial(N_Vector x, N_Vector z)
723
+ {
724
+ integertype i, N;
725
+ realtype *xd, *zd;
726
+
727
+ N = NV_LENGTH_S(x);
728
+ xd = NV_DATA_S(x);
729
+ zd = NV_DATA_S(z);
730
+
731
+ for (i = 0; i < N; i++)
732
+ {
733
+ if (*xd == ZERO)
734
+ return (FALSE);
735
+ *zd++ = ONE / (*xd++);
736
+ }
737
+
738
+ return (TRUE);
739
+ }
740
+
741
+
742
+ booleantype
743
+ N_VConstrProdPos_Serial(N_Vector c, N_Vector x)
744
+ {
745
+ integertype i, N;
746
+ realtype *xd, *cd;
747
+ booleantype test;
748
+
749
+ N = NV_LENGTH_S(x);
750
+ xd = NV_DATA_S(x);
751
+ cd = NV_DATA_S(c);
752
+
753
+ test = TRUE;
754
+
755
+ for (i = 0; i < N; i++, xd++, cd++)
756
+ {
757
+ if (*cd != ZERO)
758
+ {
759
+ if ((*xd) * (*cd) <= ZERO)
760
+ {
761
+ test = FALSE;
762
+ break;
763
+ }
764
+ }
765
+ }
766
+ return (test);
767
+ }
768
+
769
+
770
+ booleantype
771
+ N_VConstrMask_Serial(N_Vector c, N_Vector x, N_Vector m)
772
+ {
773
+ integertype i, N;
774
+ booleantype test;
775
+ realtype *cd, *xd, *md;
776
+
777
+ N = NV_LENGTH_S(x);
778
+ xd = NV_DATA_S(x);
779
+ cd = NV_DATA_S(c);
780
+ md = NV_DATA_S(m);
781
+
782
+ test = TRUE;
783
+
784
+ for (i = 0; i < N; i++, cd++, xd++, md++)
785
+ {
786
+ *md = ZERO;
787
+ if (*cd == ZERO)
788
+ continue;
789
+ if (*cd > ONEPT5 || (*cd) < -ONEPT5)
790
+ {
791
+ if ((*xd) * (*cd) <= ZERO)
792
+ {
793
+ test = FALSE;
794
+ *md = ONE;
795
+ }
796
+ continue;
797
+ }
798
+ if ((*cd) > HALF || (*cd) < -HALF)
799
+ {
800
+ if ((*xd) * (*cd) < ZERO)
801
+ {
802
+ test = FALSE;
803
+ *md = ONE;
804
+ }
805
+ }
806
+ }
807
+ return (test);
808
+ }
809
+
810
+
811
+ realtype
812
+ N_VMinQuotient_Serial(N_Vector num, N_Vector denom)
813
+ {
814
+ booleantype notEvenOnce;
815
+ integertype i, N;
816
+ realtype *nd, *dd, min;
817
+
818
+ N = NV_LENGTH_S(num);
819
+ nd = NV_DATA_S(num);
820
+ dd = NV_DATA_S(denom);
821
+ min = 0;
822
+
823
+ notEvenOnce = TRUE;
824
+
825
+ for (i = 0; i < N; i++, nd++, dd++)
826
+ {
827
+ if (*dd == ZERO)
828
+ continue;
829
+ else
830
+ {
831
+ if (notEvenOnce)
832
+ {
833
+ min = *nd / *dd;
834
+ notEvenOnce = FALSE;
835
+ }
836
+ else
837
+ min = MIN(min, (*nd) / (*dd));
838
+ }
839
+ }
840
+ if (notEvenOnce)
841
+ min = 1.e99;
842
+
843
+ return (min);
844
+ }
845
+
846
+
847
+ void
848
+ N_VPrint_Serial(N_Vector x)
849
+ {
850
+ integertype N;
851
+ realtype *xd;
852
+
853
+ N = NV_LENGTH_S(x);
854
+ xd = NV_DATA_S(x);
855
+
856
+ #if !defined(R_SO)
857
+ for (integertype i = 0; i < N; i++)
858
+ printf("%11.8g\n", (double) (*xd++));
859
+
860
+ printf("\n");
861
+ #endif
862
+ }
863
+
864
+
865
+ /***************** Private Helper Functions **********************/
866
+
867
+
868
+ static void
869
+ VCopy_Serial(N_Vector x, N_Vector z)
870
+ {
871
+ integertype i, N;
872
+ realtype *xd, *zd;
873
+
874
+ N = NV_LENGTH_S(x);
875
+ xd = NV_DATA_S(x);
876
+ zd = NV_DATA_S(z);
877
+
878
+ for (i = 0; i < N; i++)
879
+ *zd++ = *xd++;
880
+ }
881
+
882
+
883
+ static void
884
+ VSum_Serial(N_Vector x, N_Vector y, N_Vector z)
885
+ {
886
+ integertype i, N;
887
+ realtype *xd, *yd, *zd;
888
+
889
+ N = NV_LENGTH_S(x);
890
+ xd = NV_DATA_S(x);
891
+ yd = NV_DATA_S(y);
892
+ zd = NV_DATA_S(z);
893
+
894
+ for (i = 0; i < N; i++)
895
+ *zd++ = (*xd++) + (*yd++);
896
+ }
897
+
898
+
899
+ static void
900
+ VDiff_Serial(N_Vector x, N_Vector y, N_Vector z)
901
+ {
902
+ integertype i, N;
903
+ realtype *xd, *yd, *zd;
904
+
905
+ N = NV_LENGTH_S(x);
906
+ xd = NV_DATA_S(x);
907
+ yd = NV_DATA_S(y);
908
+ zd = NV_DATA_S(z);
909
+
910
+ for (i = 0; i < N; i++)
911
+ *zd++ = (*xd++) - (*yd++);
912
+ }
913
+
914
+
915
+ static void
916
+ VNeg_Serial(N_Vector x, N_Vector z)
917
+ {
918
+ integertype i, N;
919
+ realtype *xd, *zd;
920
+
921
+ N = NV_LENGTH_S(x);
922
+ xd = NV_DATA_S(x);
923
+ zd = NV_DATA_S(z);
924
+
925
+ for (i = 0; i < N; i++)
926
+ *zd++ = -(*xd++);
927
+ }
928
+
929
+
930
+ static void
931
+ VScaleSum_Serial(realtype c, N_Vector x, N_Vector y, N_Vector z)
932
+ {
933
+ integertype i, N;
934
+ realtype *xd, *yd, *zd;
935
+
936
+ N = NV_LENGTH_S(x);
937
+ xd = NV_DATA_S(x);
938
+ yd = NV_DATA_S(y);
939
+ zd = NV_DATA_S(z);
940
+
941
+ for (i = 0; i < N; i++)
942
+ *zd++ = c * ((*xd++) + (*yd++));
943
+ }
944
+
945
+
946
+ static void
947
+ VScaleDiff_Serial(realtype c, N_Vector x, N_Vector y, N_Vector z)
948
+ {
949
+ integertype i, N;
950
+ realtype *xd, *yd, *zd;
951
+
952
+ N = NV_LENGTH_S(x);
953
+ xd = NV_DATA_S(x);
954
+ yd = NV_DATA_S(y);
955
+ zd = NV_DATA_S(z);
956
+
957
+ for (i = 0; i < N; i++)
958
+ *zd++ = c * ((*xd++) - (*yd++));
959
+ }
960
+
961
+
962
+ static void
963
+ VLin1_Serial(realtype a, N_Vector x, N_Vector y, N_Vector z)
964
+ {
965
+ integertype i, N;
966
+ realtype *xd, *yd, *zd;
967
+
968
+ N = NV_LENGTH_S(x);
969
+ xd = NV_DATA_S(x);
970
+ yd = NV_DATA_S(y);
971
+ zd = NV_DATA_S(z);
972
+
973
+ for (i = 0; i < N; i++)
974
+ *zd++ = a * (*xd++) + (*yd++);
975
+ }
976
+
977
+
978
+ static void
979
+ VLin2_Serial(realtype a, N_Vector x, N_Vector y, N_Vector z)
980
+ {
981
+ integertype i, N;
982
+ realtype *xd, *yd, *zd;
983
+
984
+ N = NV_LENGTH_S(x);
985
+ xd = NV_DATA_S(x);
986
+ yd = NV_DATA_S(y);
987
+ zd = NV_DATA_S(z);
988
+
989
+ for (i = 0; i < N; i++)
990
+ *zd++ = a * (*xd++) - (*yd++);
991
+ }
992
+
993
+ static void
994
+ Vaxpy_Serial(realtype a, N_Vector x, N_Vector y)
995
+ {
996
+ integertype i, N;
997
+ realtype *xd, *yd;
998
+
999
+ N = NV_LENGTH_S(x);
1000
+ xd = NV_DATA_S(x);
1001
+ yd = NV_DATA_S(y);
1002
+
1003
+ if (a == ONE)
1004
+ {
1005
+ for (i = 0; i < N; i++)
1006
+ *yd++ += (*xd++);
1007
+ return;
1008
+ }
1009
+
1010
+ if (a == -ONE)
1011
+ {
1012
+ for (i = 0; i < N; i++)
1013
+ *yd++ -= (*xd++);
1014
+ return;
1015
+ }
1016
+
1017
+ for (i = 0; i < N; i++)
1018
+ *yd++ += a * (*xd++);
1019
+ }
1020
+
1021
+ static void
1022
+ VScaleBy_Serial(realtype a, N_Vector x)
1023
+ {
1024
+ integertype i, N;
1025
+ realtype *xd;
1026
+
1027
+ N = NV_LENGTH_S(x);
1028
+ xd = NV_DATA_S(x);
1029
+
1030
+ for (i = 0; i < N; i++)
1031
+ *xd++ *= a;
1032
+ }