pyEQL 1.4.0rc9__cp311-cp311-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-311-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,940 @@
1
+ #ifndef _INC_CVODE_H
2
+ #define _INC_CVODE_H
3
+ /**************************************************************************
4
+ * *
5
+ * File : cvode.h *
6
+ * Programmers : Scott D. Cohen, Alan C. Hindmarsh, Radu Serban *
7
+ * and Dan Shumaker @ LLNL *
8
+ * Version of : 26 June 2002 *
9
+ *------------------------------------------------------------------------*
10
+ * Copyright (c) 2002, The Regents of the University of California *
11
+ * Produced at the Lawrence Livermore National Laboratory *
12
+ * All rights reserved *
13
+ * For details, see LICENSE below *
14
+ *------------------------------------------------------------------------*
15
+ * This is the interface file for the main CVODE integrator. *
16
+ * *
17
+ *------------------------------------------------------------------------*
18
+ * LICENSE *
19
+ *------------------------------------------------------------------------*
20
+ * Copyright (c) 2002, The Regents of the University of California. *
21
+ * Produced at the Lawrence Livermore National Laboratory. *
22
+ * Written by S.D. Cohen, A.C. Hindmarsh, R. Serban, *
23
+ * D. Shumaker, and A.G. Taylor. *
24
+ * UCRL-CODE-155951 (CVODE) *
25
+ * UCRL-CODE-155950 (CVODES) *
26
+ * UCRL-CODE-155952 (IDA) *
27
+ * UCRL-CODE-237203 (IDAS) *
28
+ * UCRL-CODE-155953 (KINSOL) *
29
+ * All rights reserved. *
30
+ * *
31
+ * This file is part of SUNDIALS. *
32
+ * *
33
+ * Redistribution and use in source and binary forms, with or without *
34
+ * modification, are permitted provided that the following conditions *
35
+ * are met: *
36
+ * *
37
+ * 1. Redistributions of source code must retain the above copyright *
38
+ * notice, this list of conditions and the disclaimer below. *
39
+ * *
40
+ * 2. Redistributions in binary form must reproduce the above copyright *
41
+ * notice, this list of conditions and the disclaimer (as noted below) *
42
+ * in the documentation and/or other materials provided with the *
43
+ * distribution. *
44
+ * *
45
+ * 3. Neither the name of the UC/LLNL nor the names of its contributors *
46
+ * may be used to endorse or promote products derived from this software *
47
+ * without specific prior written permission. *
48
+ * *
49
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS *
50
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT *
51
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS *
52
+ * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE *
53
+ * REGENTS OF THE UNIVERSITY OF CALIFORNIA, THE U.S. DEPARTMENT OF ENERGY *
54
+ * OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, *
55
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT *
56
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, *
57
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY *
58
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT *
59
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE *
60
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. *
61
+ **************************************************************************/
62
+ #ifndef _cvode_h
63
+ #define _cvode_h
64
+
65
+
66
+ #include <stdio.h>
67
+ #include "sundialstypes.h"
68
+ #include "nvector.h"
69
+
70
+ #undef SS
71
+
72
+ /******************************************************************
73
+ * *
74
+ * CVODE is used to solve numerically the ordinary initial value *
75
+ * problem : *
76
+ * *
77
+ * y' = f(t,y), *
78
+ * y(t0) = y0, *
79
+ * *
80
+ * where t0, y0 in R^N, and f: R x R^N -> R^N are given. *
81
+ * *
82
+ ******************************************************************/
83
+
84
+
85
+ /******************************************************************
86
+ * *
87
+ * Enumerations for inputs to CVodeMalloc, CVReInit, and CVode. *
88
+ *----------------------------------------------------------------*
89
+ * Symbolic constants for the lmm, iter, and itol input *
90
+ * parameters to CVodeMalloc and CVReInit, as well as the input *
91
+ * parameter itask to CVode, are given below. *
92
+ * *
93
+ * lmm : The user of the CVODE package specifies whether to use *
94
+ * the ADAMS or BDF (backward differentiation formula) *
95
+ * linear multistep method. The BDF method is recommended *
96
+ * for stiff problems, and the ADAMS method is recommended *
97
+ * for nonstiff problems. *
98
+ * *
99
+ * iter : At each internal time step, a nonlinear equation must *
100
+ * be solved. The user can specify either FUNCTIONAL *
101
+ * iteration, which does not require linear algebra, or a *
102
+ * NEWTON iteration, which requires the solution of linear *
103
+ * systems. In the NEWTON case, the user also specifies a *
104
+ * CVODE linear solver. NEWTON is recommended in case of *
105
+ * stiff problems. *
106
+ * *
107
+ * itol : This parameter specifies the relative and absolute *
108
+ * tolerance types to be used. The SS tolerance type means *
109
+ * a scalar relative and absolute tolerance, while the SV *
110
+ * tolerance type means a scalar relative tolerance and a *
111
+ * vector absolute tolerance (a potentially different *
112
+ * absolute tolerance for each vector component). *
113
+ * *
114
+ * itask : The itask input parameter to CVode indicates the job *
115
+ * of the solver for the next user step. The NORMAL *
116
+ * itask is to have the solver take internal steps until *
117
+ * it has reached or just passed the user specified tout *
118
+ * parameter. The solver then interpolates in order to *
119
+ * return an approximate value of y(tout). The ONE_STEP *
120
+ * option tells the solver to just take one internal step *
121
+ * and return the solution at the point reached by that *
122
+ * step. *
123
+ * *
124
+ ******************************************************************/
125
+
126
+ enum
127
+ { ADAMS, BDF }; /* lmm */
128
+
129
+ enum
130
+ { FUNCTIONAL, NEWTON }; /* iter */
131
+
132
+ enum
133
+ { SS, SV }; /* itol */
134
+
135
+ enum
136
+ { NORMAL, ONE_STEP }; /* itask */
137
+
138
+
139
+ /******************************************************************
140
+ * *
141
+ * Type : RhsFn *
142
+ *----------------------------------------------------------------*
143
+ * The f function which defines the right hand side of the ODE *
144
+ * system y' = f(t,y) must have type RhsFn. *
145
+ * f takes as input the problem size N, the independent variable *
146
+ * value t, and the dependent variable vector y. It stores the *
147
+ * result of f(t,y) in the vector ydot. The y and ydot arguments *
148
+ * are of type N_Vector. *
149
+ * (Allocation of memory for ydot is handled within CVODE.) *
150
+ * The f_data parameter is the same as the f_data *
151
+ * parameter passed by the user to the CVodeMalloc routine. This *
152
+ * user-supplied pointer is passed to the user's f function *
153
+ * every time it is called. *
154
+ * A RhsFn f does not have a return value. *
155
+ * *
156
+ ******************************************************************/
157
+
158
+ typedef void (*RhsFn) (integertype N, realtype t, N_Vector y,
159
+ N_Vector ydot, void *f_data);
160
+
161
+
162
+ /******************************************************************
163
+ * *
164
+ * Function : CVodeMalloc *
165
+ *----------------------------------------------------------------*
166
+ * CVodeMalloc allocates and initializes memory for a problem to *
167
+ * to be solved by CVODE. *
168
+ * *
169
+ * N is the number of equations in the ODE system. *
170
+ * *
171
+ * f is the right hand side function in y' = f(t,y). *
172
+ * *
173
+ * t0 is the initial value of t. *
174
+ * *
175
+ * y0 is the initial condition vector y(t0). *
176
+ * *
177
+ * lmm is the type of linear multistep method to be used. *
178
+ * The legal values are ADAMS and BDF (see previous *
179
+ * description). *
180
+ * *
181
+ * iter is the type of iteration used to solve the nonlinear *
182
+ * system that arises during each internal time step. *
183
+ * The legal values are FUNCTIONAL and NEWTON. *
184
+ * *
185
+ * itol is the type of tolerances to be used. *
186
+ * The legal values are: *
187
+ * SS (scalar relative and absolute tolerances), *
188
+ * SV (scalar relative tolerance and vector *
189
+ * absolute tolerance). *
190
+ * *
191
+ * reltol is a pointer to the relative tolerance scalar. *
192
+ * *
193
+ * abstol is a pointer to the absolute tolerance scalar or *
194
+ * an N_Vector of absolute tolerances. *
195
+ * *
196
+ * The parameters itol, reltol, and abstol define a vector of *
197
+ * error weights, ewt, with components *
198
+ * ewt[i] = 1/(reltol*abs(y[i]) + abstol) (if itol = SS), or *
199
+ * ewt[i] = 1/(reltol*abs(y[i]) + abstol[i]) (if itol = SV). *
200
+ * This vector is used in all error and convergence tests, which *
201
+ * use a weighted RMS norm on all error-like vectors v: *
202
+ * WRMSnorm(v) = sqrt( (1/N) sum(i=1..N) (v[i]*ewt[i])^2 ). *
203
+ * *
204
+ * f_data is a pointer to user data that will be passed to the *
205
+ * user's f function every time f is called. *
206
+ * *
207
+ * errfp is the file pointer for an error file where all CVODE *
208
+ * warning and error messages will be written. This *
209
+ * parameter can be stdout (standard output), stderr *
210
+ * (standard error), a file pointer (corresponding to *
211
+ * a user error file opened for writing) returned by *
212
+ * fopen, or NULL. If the user passes NULL, then all *
213
+ * messages will be written to standard output. *
214
+ * *
215
+ * optIn is a flag indicating whether there are any optional *
216
+ * inputs from the user in the arrays iopt and ropt. *
217
+ * Pass FALSE to indicate no optional inputs and TRUE *
218
+ * to indicate that optional inputs are present. *
219
+ * *
220
+ * iopt is the user-allocated array (of size OPT_SIZE given *
221
+ * later) that will hold optional integer inputs and *
222
+ * outputs. The user can pass NULL if he/she does not *
223
+ * wish to use optional integer inputs or outputs. *
224
+ * If optIn is TRUE, the user should preset to 0 those *
225
+ * locations for which default values are to be used. *
226
+ * *
227
+ * ropt is the user-allocated array (of size OPT_SIZE given *
228
+ * later) that will hold optional real inputs and *
229
+ * outputs. The user can pass NULL if he/she does not *
230
+ * wish to use optional real inputs or outputs. *
231
+ * If optIn is TRUE, the user should preset to 0.0 the *
232
+ * locations for which default values are to be used. *
233
+ * *
234
+ * machEnv is a pointer to machine environment-specific *
235
+ * information. *
236
+ * *
237
+ * Note: The tolerance values may be changed in between calls to *
238
+ * CVode for the same problem. These values refer to *
239
+ * (*reltol) and either (*abstol), for a scalar absolute *
240
+ * tolerance, or the components of abstol, for a vector *
241
+ * absolute tolerance. *
242
+ * *
243
+ * If successful, CVodeMalloc returns a pointer to initialized *
244
+ * problem memory. This pointer should be passed to CVode. If *
245
+ * an initialization error occurs, CVodeMalloc prints an error *
246
+ * message to the file specified by errfp and returns NULL. *
247
+ * *
248
+ ******************************************************************/
249
+
250
+
251
+ void *CVodeMalloc(integertype N, RhsFn f, realtype t0, N_Vector y0,
252
+ int lmm, int iter, int itol, realtype * reltol,
253
+ void *abstol, void *f_data, FILE * errfp,
254
+ booleantype optIn, long int iopt[], realtype ropt[],
255
+ M_Env machEnv);
256
+
257
+
258
+ /******************************************************************
259
+ * *
260
+ * Function : CVReInit *
261
+ *----------------------------------------------------------------*
262
+ * CVReInit re-initializes CVode for the solution of a problem, *
263
+ * where a prior call to CVodeMalloc has been made with the same *
264
+ * problem size N. CVReInit performs the same input checking *
265
+ * and initializations that CVodeMalloc does (except for N). *
266
+ * But it does no memory allocation, assuming that the existing *
267
+ * internal memory is sufficient for the new problem. *
268
+ * *
269
+ * The use of CVReInit requires that the maximum method order, *
270
+ * maxord, is no larger for the new problem than for the problem *
271
+ * specified in the last call to CVodeMalloc. This condition is *
272
+ * automatically fulfilled if the multistep method parameter lmm *
273
+ * is unchanged (or changed from ADAMS to BDF) and the default *
274
+ * value for maxord is specified. *
275
+ * *
276
+ * If iter = NEWTON, then following the call to CVReInit, a call *
277
+ * to the linear solver specification routine is necessary if a *
278
+ * different linear solver is chosen, but may not be otherwise. *
279
+ * If the same linear solver is chosen, and there are no changes *
280
+ * in the input parameters to the specification routine, then no *
281
+ * call to that routine is needed. *
282
+ * If there are changes in parameters, but they do not increase *
283
+ * the linear solver memory size, then a call to the corresponding*
284
+ * CVReInit<linsol> routine must made to communicate the new *
285
+ * parameters; in that case the linear solver memory is reused. *
286
+ * If the parameter changes do increase the linear solver memory *
287
+ * size, then the main linear solver specification routine must be*
288
+ * called. See the linear solver documentation for full details. *
289
+ * *
290
+ * The first argument to CVReInit is: *
291
+ * *
292
+ * cvode_mem = pointer to CVODE memory returned by CVodeMalloc. *
293
+ * *
294
+ * All the remaining arguments to CVReInit have names and *
295
+ * meanings identical to those of CVodeMalloc. Note that the *
296
+ * problem size N is not passed as an argument to CVReInit, *
297
+ * as that is assumed to be unchanged since the CVodeMalloc call. *
298
+ * *
299
+ * The return value of CVReInit is equal to SUCCESS = 0 if there *
300
+ * were no errors; otherwise it is a negative int equal to: *
301
+ * CVREI_NO_MEM indicating cvode_mem was NULL, or *
302
+ * CVREI_ILL_INPUT indicating an input argument was illegal *
303
+ * (including an attempt to increase maxord). *
304
+ * In case of an error return, an error message is also printed. *
305
+ * *
306
+ * Note: the reported workspace sizes iopt[LENRW] and iopt[LENIW] *
307
+ * are left unchanged from the values computed by CVodeMalloc, and*
308
+ * so may be larger than would be computed for the new problem. *
309
+ ******************************************************************/
310
+
311
+ int CVReInit(void *cvode_mem, RhsFn f, realtype t0, N_Vector y0,
312
+ int lmm, int iter, int itol, realtype * reltol,
313
+ void *abstol, void *f_data, FILE * errfp,
314
+ booleantype optIn, long int iopt[],
315
+ realtype ropt[], M_Env machEnv);
316
+
317
+
318
+ /* CVReInit return values: */
319
+
320
+ /* SUCCESS = 0 (Defined under CVode return values, but listed
321
+ here also for completeness) */
322
+ enum
323
+ { CVREI_NO_MEM = -1, CVREI_ILL_INPUT = -2 };
324
+
325
+
326
+ /******************************************************************
327
+ * *
328
+ * Function : CVode *
329
+ *----------------------------------------------------------------*
330
+ * CVode integrates the ODE over an interval in t. *
331
+ * If itask is NORMAL, then the solver integrates from its *
332
+ * current internal t value to a point at or beyond tout, then *
333
+ * interpolates to t = tout and returns y(tout) in the user- *
334
+ * allocated vector yout. If itask is ONE_STEP, then the solver *
335
+ * takes one internal time step and returns in yout the value of *
336
+ * y at the new internal time. In this case, tout is used only *
337
+ * during the first call to CVode to determine the direction of *
338
+ * integration and the rough scale of the problem. In either *
339
+ * case, the time reached by the solver is placed in (*t). The *
340
+ * user is responsible for allocating the memory for this value. *
341
+ * *
342
+ * cvode_mem is the pointer to CVODE memory returned by *
343
+ * CVodeMalloc. *
344
+ * *
345
+ * tout is the next time at which a computed solution is desired *
346
+ * *
347
+ * yout is the computed solution vector. In NORMAL mode with no *
348
+ * errors, yout=y(tout). *
349
+ * *
350
+ * t is a pointer to a real location. CVode sets (*t) to the *
351
+ * time reached by the solver and returns yout=y(*t). *
352
+ * *
353
+ * itask is either NORMAL or ONE_STEP mode. These two modes have *
354
+ * been described above. *
355
+ * *
356
+ * The return values for CVode are defined later in this file. *
357
+ * Here is a brief description of each return value: *
358
+ * *
359
+ * SUCCESS : CVode succeeded. *
360
+ * *
361
+ * CVODE_NO_MEM : The cvode_mem argument was NULL. *
362
+ * *
363
+ * ILL_INPUT : One of the inputs to CVode is illegal. This *
364
+ * includes the situation when a component of the *
365
+ * error weight vectors becomes < 0 during *
366
+ * internal time-stepping. The ILL_INPUT flag *
367
+ * will also be returned if the linear solver *
368
+ * routine CV--- (called by the user after *
369
+ * calling CVodeMalloc) failed to set one of the *
370
+ * linear solver-related fields in cvode_mem or *
371
+ * if the linear solver's init routine failed. In *
372
+ * any case, the user should see the printed *
373
+ * error message for more details. *
374
+ * *
375
+ * TOO_MUCH_WORK : The solver took mxstep internal steps but *
376
+ * could not reach tout. The default value for *
377
+ * mxstep is MXSTEP_DEFAULT = 500. *
378
+ * *
379
+ * TOO_MUCH_ACC : The solver could not satisfy the accuracy *
380
+ * demanded by the user for some internal step. *
381
+ * *
382
+ * ERR_FAILURE : Error test failures occurred too many times *
383
+ * (= MXNEF = 7) during one internal time step or *
384
+ * occurred with |h| = hmin. *
385
+ * *
386
+ * CONV_FAILURE : Convergence test failures occurred too many *
387
+ * times (= MXNCF = 10) during one internal time *
388
+ * step or occurred with |h| = hmin. *
389
+ * *
390
+ * SETUP_FAILURE : The linear solver's setup routine failed in an *
391
+ * unrecoverable manner. *
392
+ * *
393
+ * SOLVE_FAILURE : The linear solver's solve routine failed in an *
394
+ * unrecoverable manner. *
395
+ * *
396
+ ******************************************************************/
397
+
398
+
399
+ int CVode(void *cvode_mem, realtype tout, N_Vector yout,
400
+ realtype * t, int itask);
401
+
402
+
403
+ /* CVode return values */
404
+
405
+ enum
406
+ { SUCCESS = 0, CVODE_NO_MEM = -1, ILL_INPUT = -2, TOO_MUCH_WORK = -3,
407
+ TOO_MUCH_ACC = -4, ERR_FAILURE = -5, CONV_FAILURE = -6,
408
+ SETUP_FAILURE = -7, SOLVE_FAILURE = -8
409
+ };
410
+
411
+
412
+ /******************************************************************
413
+ * *
414
+ * Function : CVodeDky *
415
+ *----------------------------------------------------------------*
416
+ * CVodeDky computes the kth derivative of the y function at *
417
+ * time t, where tn-hu <= t <= tn, tn denotes the current *
418
+ * internal time reached, and hu is the last internal step size *
419
+ * successfully used by the solver. The user may request *
420
+ * k=0, 1, ..., qu, where qu is the current order. The *
421
+ * derivative vector is returned in dky. This vector must be *
422
+ * allocated by the caller. It is only legal to call this *
423
+ * function after a successful return from CVode. *
424
+ * *
425
+ * cvode_mem is the pointer to CVODE memory returned by *
426
+ * CVodeMalloc. *
427
+ * *
428
+ * t is the time at which the kth derivative of y is evaluated. *
429
+ * The legal range for t is [tn-hu,tn] as described above. *
430
+ * *
431
+ * k is the order of the derivative of y to be computed. The *
432
+ * legal range for k is [0,qu] as described above. *
433
+ * *
434
+ * dky is the output derivative vector [(D_k)y](t). *
435
+ * *
436
+ * The return values for CVodeDky are defined later in this file. *
437
+ * Here is a brief description of each return value: *
438
+ * *
439
+ * OKAY : CVodeDky succeeded. *
440
+ * *
441
+ * BAD_K : k is not in the range 0, 1, ..., qu. *
442
+ * *
443
+ * BAD_T : t is not in the interval [tn-hu,tn]. *
444
+ * *
445
+ * BAD_DKY : The dky argument was NULL. *
446
+ * *
447
+ * DKY_NO_MEM : The cvode_mem argument was NULL. *
448
+ * *
449
+ ******************************************************************/
450
+
451
+
452
+ int CVodeDky(void *cvode_mem, realtype t, int k, N_Vector dky);
453
+
454
+
455
+ /* CVodeDky return values */
456
+
457
+ enum
458
+ { OKAY = 0, BAD_K = -1, BAD_T = -2, BAD_DKY = -3, DKY_NO_MEM = -4 };
459
+
460
+
461
+ /******************************************************************
462
+ * *
463
+ * Function : CVodeFree *
464
+ *----------------------------------------------------------------*
465
+ * CVodeFree frees the problem memory cvode_mem allocated by *
466
+ * CVodeMalloc. Its only argument is the pointer cvode_mem *
467
+ * returned by CVodeMalloc. *
468
+ * *
469
+ ******************************************************************/
470
+
471
+ void CVodeFree(void *cvode_mem);
472
+
473
+
474
+ /******************************************************************
475
+ * *
476
+ * Optional Inputs and Outputs *
477
+ *----------------------------------------------------------------*
478
+ * The user should declare two arrays for optional input and *
479
+ * output, an iopt array for optional integer input and output *
480
+ * and an ropt array for optional real input and output. The *
481
+ * size of both these arrays should be OPT_SIZE. *
482
+ * So the user's declaration should look like: *
483
+ * *
484
+ * long int iopt[OPT_SIZE]; *
485
+ * realtype ropt[OPT_SIZE]; *
486
+ * *
487
+ * The enumerations below the OPT_SIZE definition *
488
+ * are indices into the iopt and ropt arrays. Here is a brief *
489
+ * description of the contents of these positions: *
490
+ * *
491
+ * iopt[MAXORD] : maximum lmm order to be used by the solver. *
492
+ * Optional input. (Default = 12 for ADAMS, 5 for *
493
+ * BDF). *
494
+ * *
495
+ * iopt[MXSTEP] : maximum number of internal steps to be taken by *
496
+ * the solver in its attempt to reach tout. *
497
+ * Optional input. (Default = 500). *
498
+ * *
499
+ * iopt[MXHNIL] : maximum number of warning messages issued by the*
500
+ * solver that t + h = t on the next internal step.*
501
+ * A value of -1 means no such messages are issued.*
502
+ * Optional input. (Default = 10). *
503
+ * *
504
+ * iopt[NST] : cumulative number of internal steps taken by *
505
+ * the solver (total so far). Optional output. *
506
+ * *
507
+ * iopt[NFE] : number of calls to the user's f function. *
508
+ * Optional output. *
509
+ * *
510
+ * iopt[NSETUPS] : number of calls made to the linear solver's *
511
+ * setup routine. Optional output. *
512
+ * *
513
+ * iopt[NNI] : number of NEWTON iterations performed. *
514
+ * Optional output. *
515
+ * *
516
+ * iopt[NCFN] : number of nonlinear convergence failures *
517
+ * that have occurred. Optional output. *
518
+ * *
519
+ * iopt[NETF] : number of local error test failures that *
520
+ * have occurred. Optional output. *
521
+ * *
522
+ * iopt[QU] : order used during the last internal step. *
523
+ * Optional output. *
524
+ * *
525
+ * iopt[QCUR] : order to be used on the next internal step. *
526
+ * Optional output. *
527
+ * *
528
+ * iopt[LENRW] : size of required CVODE internal real work *
529
+ * space, in realtype words. Optional output. *
530
+ * *
531
+ * iopt[LENIW] : size of required CVODE internal integer work *
532
+ * space, in integertype words. Optional output. *
533
+ * *
534
+ * iopt[SLDET] : Flag to turn on/off stability limit detection *
535
+ * (1 = on, 0 = off). When BDF is used and order *
536
+ * is 3 or greater, CVsldet is call to detect *
537
+ * stability limit. If limit is detected, the *
538
+ * order is reduced. Optional input. *
539
+ * *
540
+ * iopt[NOR] : Number of order reductions due to *
541
+ * stability limit detection. *
542
+ * Optional output. *
543
+ * *
544
+ * ropt[H0] : initial step size. Optional input. *
545
+ * *
546
+ * ropt[HMAX] : maximum absolute value of step size allowed. *
547
+ * Optional input. (Default is infinity). *
548
+ * Note: If optIn = TRUE, the value of ropt[HMAX] *
549
+ * is examined on every call to CVode, and so can *
550
+ * be changed between calls. *
551
+ * *
552
+ * ropt[HMIN] : minimum absolute value of step size allowed. *
553
+ * Optional input. (Default is 0.0). *
554
+ * *
555
+ * ropt[HU] : step size for the last internal step. *
556
+ * Optional output. *
557
+ * *
558
+ * ropt[HCUR] : step size to be attempted on the next internal *
559
+ * step. Optional output. *
560
+ * *
561
+ * ropt[TCUR] : current internal time reached by the solver. *
562
+ * Optional output. *
563
+ * *
564
+ * ropt[TOLSF] : a suggested factor by which the user's *
565
+ * tolerances should be scaled when too much *
566
+ * accuracy has been requested for some internal *
567
+ * step. Optional output. *
568
+ * *
569
+ ******************************************************************/
570
+
571
+ /* iopt, ropt array sizes */
572
+
573
+ #define OPT_SIZE 40
574
+
575
+
576
+ /* iopt and ropt offsets *
577
+ * The constants CVODE_IOPT_SIZE and CVODE_ROPT_SIZE are equal to *
578
+ * the number of integer and real optional inputs and outputs *
579
+ * actually accessed in cvode.c. The locations beyond these *
580
+ * values are used by the linear solvers. */
581
+
582
+ #define CVODE_IOPT_SIZE 15
583
+ #define CVODE_ROPT_SIZE 7
584
+
585
+ /* iopt indices */
586
+ enum
587
+ { MAXORD, MXSTEP, MXHNIL,
588
+ NST, NFE, NSETUPS, NNI, NCFN, NETF, QU, QCUR,
589
+ LENRW, LENIW, SLDET, NOR
590
+ };
591
+
592
+ /* ropt indices */
593
+
594
+ enum
595
+ { H0, HMAX, HMIN,
596
+ HU, HCUR, TCUR, TOLSF
597
+ };
598
+
599
+
600
+ /* Basic CVODE constants */
601
+
602
+ #define ADAMS_Q_MAX 12 /* max value of q for lmm == ADAMS */
603
+ #define BDF_Q_MAX 5 /* max value of q for lmm == BDF */
604
+ #define Q_MAX ADAMS_Q_MAX /* max value of q for either lmm */
605
+ #define L_MAX (Q_MAX+1) /* max value of L for either lmm */
606
+ #define NUM_TESTS 5 /* number of error test quantities */
607
+
608
+
609
+ /******************************************************************
610
+ * *
611
+ * Types : struct CVodeMemRec, CVodeMem *
612
+ *----------------------------------------------------------------*
613
+ * The type CVodeMem is type pointer to struct CVodeMemRec. This *
614
+ * structure contains fields to keep track of problem state. *
615
+ * *
616
+ ******************************************************************/
617
+
618
+ typedef struct CVodeMemRec
619
+ {
620
+
621
+ realtype cv_uround; /* machine unit roundoff */
622
+
623
+ /* Problem Specification Data */
624
+
625
+ integertype cv_N; /* ODE system size */
626
+ RhsFn cv_f; /* y' = f(t,y(t)) */
627
+ void *cv_f_data; /* user pointer passed to f */
628
+ int cv_lmm; /* lmm = ADAMS or BDF */
629
+ int cv_iter; /* iter = FUNCTIONAL or NEWTON */
630
+ int cv_itol; /* itol = SS or SV */
631
+ realtype *cv_reltol; /* ptr to relative tolerance */
632
+ void *cv_abstol; /* ptr to absolute tolerance */
633
+
634
+ /* Nordsieck History Array */
635
+
636
+ N_Vector cv_zn[L_MAX]; /* Nordsieck array, of size N x (q+1). */
637
+ /* zn[j] is a vector of length N (j=0,...,q) */
638
+ /* zn[j] = [1/factorial(j)] * h^j * (jth */
639
+ /* derivative of the interpolating polynomial */
640
+
641
+ /* Vectors of length N */
642
+
643
+ N_Vector cv_ewt; /* error weight vector */
644
+ N_Vector cv_y; /* y is used as temporary storage by the solver */
645
+ /* The memory is provided by the user to CVode */
646
+ /* where the vector is named yout. */
647
+ N_Vector cv_acor; /* In the context of the solution of the */
648
+ /* nonlinear equation, acor = y_n(m) - y_n(0). */
649
+ /* On return, this vector is scaled to give */
650
+ /* the estimated local error in y. */
651
+ N_Vector cv_tempv; /* temporary storage vector */
652
+ N_Vector cv_ftemp; /* temporary storage vector */
653
+
654
+ /* Step Data */
655
+
656
+ int cv_q; /* current order */
657
+ int cv_qprime; /* order to be used on the next step */
658
+ /* = q-1, q, or q+1 */
659
+ int cv_qwait; /* number of internal steps to wait before */
660
+ /* considering a change in q */
661
+ int cv_L; /* L = q + 1 */
662
+
663
+ realtype cv_h; /* current step size */
664
+ realtype cv_hprime; /* step size to be used on the next step */
665
+ realtype cv_eta; /* eta = hprime / h */
666
+ realtype cv_hscale; /* value of h used in zn */
667
+ realtype cv_tn; /* current internal value of t */
668
+
669
+ realtype cv_tau[L_MAX + 1]; /* array of previous q+1 successful step */
670
+ /* sizes indexed from 1 to q+1 */
671
+ realtype cv_tq[NUM_TESTS + 1]; /* array of test quantities indexed from */
672
+ /* 1 to NUM_TESTS(=5) */
673
+ realtype cv_l[L_MAX]; /* coefficients of l(x) (degree q poly) */
674
+
675
+ realtype cv_rl1; /* 1 / l[1] */
676
+ realtype cv_gamma; /* gamma = h * rl1 */
677
+ realtype cv_gammap; /* gamma at the last setup call */
678
+ realtype cv_gamrat; /* gamma / gammap */
679
+
680
+ realtype cv_crate; /* estimated corrector convergence rate */
681
+ realtype cv_acnrm; /* | acor | wrms */
682
+ int cv_mnewt; /* Newton iteration counter */
683
+
684
+ /* Limits */
685
+
686
+ int cv_qmax; /* q <= qmax */
687
+ int cv_mxstep; /* maximum number of internal steps for one user call */
688
+ int cv_maxcor; /* maximum number of corrector iterations for the */
689
+ /* solution of the nonlinear equation */
690
+ int cv_mxhnil; /* maximum number of warning messages issued to the */
691
+ /* user that t + h == t for the next internal step */
692
+
693
+ realtype cv_hmin; /* |h| >= hmin */
694
+ realtype cv_hmax_inv; /* |h| <= 1/hmax_inv */
695
+ realtype cv_etamax; /* eta <= etamax */
696
+
697
+ /* Counters */
698
+
699
+ long int cv_nst; /* number of internal steps taken */
700
+ long int cv_nfe; /* number of f calls */
701
+ long int cv_ncfn; /* number of corrector convergence failures */
702
+ long int cv_netf; /* number of error test failures */
703
+ long int cv_nni; /* number of Newton iterations performed */
704
+ long int cv_nsetups; /* number of setup calls */
705
+ int cv_nhnil; /* number of messages issued to the user that */
706
+ /* t + h == t for the next iternal step */
707
+ long int cv_lrw; /* number of realtype words in CVODE work vectors */
708
+ long int cv_liw; /* no. of integertype words in CVODE work vectors */
709
+ long int cv_nscon; /* counter for STALD method */
710
+
711
+ realtype cv_etaqm1; /* ratio of new to old h for order q-1 */
712
+ realtype cv_etaq; /* ratio of new to old h for order q */
713
+ realtype cv_etaqp1; /* ratio of new to old h for order q+1 */
714
+ realtype cv_ssdat[6][4]; /* scaled data array for STALD */
715
+
716
+ /* Linear Solver Data */
717
+
718
+ /* Linear Solver functions to be called */
719
+
720
+ int (*cv_linit) (struct CVodeMemRec * cv_mem);
721
+
722
+ int (*cv_lsetup) (struct CVodeMemRec * cv_mem, int convfail,
723
+ N_Vector ypred, N_Vector fpred,
724
+ booleantype * jcurPtr, N_Vector vtemp1,
725
+ N_Vector vtemp2, N_Vector vtemp3);
726
+
727
+ int (*cv_lsolve) (struct CVodeMemRec * cv_mem, N_Vector b,
728
+ N_Vector ycur, N_Vector fcur);
729
+
730
+ void (*cv_lfree) (struct CVodeMemRec * cv_mem);
731
+
732
+ /* Linear Solver specific memory */
733
+
734
+ void *cv_lmem;
735
+
736
+ /* Saved Values */
737
+
738
+ int cv_qu; /* last successful q value used */
739
+ long int cv_nstlp; /* step number of last setup call */
740
+ realtype cv_hu; /* last successful h value used */
741
+ realtype cv_saved_tq5; /* saved value of tq[5] */
742
+ booleantype cv_jcur; /* Is the Jacobian info used by */
743
+ /* linear solver current? */
744
+ realtype cv_tolsf; /* tolerance scale factor */
745
+ booleantype cv_setupNonNull; /* Does setup do something? */
746
+
747
+ /* Arrays for Optional Input and Optional Output */
748
+
749
+ booleantype cv_optIn; /* boolean input optIn */
750
+ long int *cv_iopt; /* long int optional input, output */
751
+ realtype *cv_ropt; /* real optional input, output */
752
+
753
+ /* Error File */
754
+
755
+ #if !defined(R_SO)
756
+ FILE *cv_errfp; /* CVODE error messages are sent to errfp */
757
+ #endif
758
+
759
+ /* Pointer to Machine Environment-Specific Information */
760
+
761
+ M_Env cv_machenv;
762
+
763
+ /* Stability Limit Detection control flag */
764
+
765
+ booleantype cv_sldeton; /* Is Stability Limit Detection on */
766
+
767
+ } *CVodeMem;
768
+
769
+
770
+ /******************************************************************
771
+ * *
772
+ * Communication between user and a CVODE Linear Solver *
773
+ *----------------------------------------------------------------*
774
+ * Return values of the linear solver specification routine. *
775
+ * The values of these are given in the enum statement below. *
776
+ * SUCCESS : The routine was successful. *
777
+ * *
778
+ * LMEM_FAIL : A memory allocation failed. *
779
+ * *
780
+ * LIN_ILL_INPUT: Some input was illegal (see message). *
781
+ * *
782
+ ******************************************************************/
783
+
784
+ /* SUCCESS = 0 (Defined under CVode return values, but listed
785
+ here also for completeness) */
786
+ enum
787
+ { LMEM_FAIL = -1, LIN_ILL_INPUT = -2 };
788
+
789
+
790
+ /******************************************************************
791
+ * *
792
+ * Communication between cvode.c and a CVODE Linear Solver *
793
+ *----------------------------------------------------------------*
794
+ * (1) cv_linit return values *
795
+ * *
796
+ * LINIT_OK : The cv_linit routine succeeded. *
797
+ * *
798
+ * LINIT_ERR : The cv_linit routine failed. Each linear solver *
799
+ * init routine should print an appropriate error *
800
+ * message to (cv_mem->errfp). *
801
+ * *
802
+ * (2) convfail (input to cv_lsetup) *
803
+ * *
804
+ * NO_FAILURES : Either this is the first cv_setup call for this *
805
+ * step, or the local error test failed on the *
806
+ * previous attempt at this step (but the Newton *
807
+ * iteration converged). *
808
+ * *
809
+ * FAIL_BAD_J : This value is passed to cv_lsetup if *
810
+ * *
811
+ * (1) The previous Newton corrector iteration *
812
+ * did not converge and the linear solver's *
813
+ * setup routine indicated that its Jacobian- *
814
+ * related data is not current. *
815
+ * or *
816
+ * (2) During the previous Newton corrector *
817
+ * iteration, the linear solver's solve routine *
818
+ * failed in a recoverable manner and the *
819
+ * linear solver's setup routine indicated that *
820
+ * its Jacobian-related data is not current. *
821
+ * *
822
+ * FAIL_OTHER : During the current internal step try, the *
823
+ * previous Newton iteration failed to converge *
824
+ * even though the linear solver was using current *
825
+ * Jacobian-related data. *
826
+ * *
827
+ * (3) Parameter documentation, as well as a brief description *
828
+ * of purpose, for each CVODE linear solver routine to be *
829
+ * called in cvode.c is given below the constant declarations *
830
+ * that follow. *
831
+ * *
832
+ ******************************************************************/
833
+
834
+ /* cv_linit return values */
835
+
836
+ #define LINIT_OK 0
837
+ #define LINIT_ERR -1
838
+
839
+ /* Constants for convfail (input to cv_lsetup) */
840
+
841
+ #define NO_FAILURES 0
842
+ #define FAIL_BAD_J 1
843
+ #define FAIL_OTHER 2
844
+
845
+
846
+ /*******************************************************************
847
+ * *
848
+ * int (*cv_linit)(CVodeMem cv_mem); *
849
+ *-----------------------------------------------------------------*
850
+ * The purpose of cv_linit is to complete initializations for *
851
+ * specific linear solver, such as counters and statistics. *
852
+ * An LInitFn should return LINIT_OK (= 0) if it has successfully *
853
+ * initialized the CVODE linear solver and LINIT_ERR (= -1) *
854
+ * otherwise. These constants are defined above. If an error does *
855
+ * occur, an appropriate message should be sent to (cv_mem->errfp).*
856
+ * *
857
+ *******************************************************************/
858
+
859
+ /*******************************************************************
860
+ * *
861
+ * int (*cv_lsetup)(CVodeMem cv_mem, int convfail, N_Vector ypred, *
862
+ * N_Vector fpred, booleantype *jcurPtr, *
863
+ * N_Vector vtemp1, N_Vector vtemp2, N_Vector vtemp3); *
864
+ *-----------------------------------------------------------------*
865
+ * The job of cv_lsetup is to prepare the linear solver for *
866
+ * subsequent calls to cv_lsolve. It may re-compute Jacobian- *
867
+ * related data is it deems necessary. Its parameters are as *
868
+ * follows: *
869
+ * *
870
+ * cv_mem - problem memory pointer of type CVodeMem. See the big *
871
+ * typedef earlier in this file. *
872
+ * *
873
+ * convfail - a flag to indicate any problem that occurred during *
874
+ * the solution of the nonlinear equation on the *
875
+ * current time step for which the linear solver is *
876
+ * being used. This flag can be used to help decide *
877
+ * whether the Jacobian data kept by a CVODE linear *
878
+ * solver needs to be updated or not. *
879
+ * Its possible values have been documented above. *
880
+ * *
881
+ * ypred - the predicted y vector for the current CVODE internal *
882
+ * step. *
883
+ * *
884
+ * fpred - f(tn, ypred). *
885
+ * *
886
+ * jcurPtr - a pointer to a boolean to be filled in by cv_lsetup. *
887
+ * The function should set *jcurPtr=TRUE if its Jacobian *
888
+ * data is current after the call and should set *
889
+ * *jcurPtr=FALSE if its Jacobian data is not current. *
890
+ * Note: If cv_lsetup calls for re-evaluation of *
891
+ * Jacobian data (based on convfail and CVODE state *
892
+ * data), it should return *jcurPtr=TRUE unconditionally;*
893
+ * otherwise an infinite loop can result. *
894
+ * *
895
+ * vtemp1 - temporary N_Vector provided for use by cv_lsetup. *
896
+ * *
897
+ * vtemp3 - temporary N_Vector provided for use by cv_lsetup. *
898
+ * *
899
+ * vtemp3 - temporary N_Vector provided for use by cv_lsetup. *
900
+ * *
901
+ * The cv_lsetup routine should return 0 if successful, *
902
+ * a positive value for a recoverable error, and a negative value *
903
+ * for an unrecoverable error. *
904
+ * *
905
+ *******************************************************************/
906
+
907
+ /*******************************************************************
908
+ * *
909
+ * int (*cv_lsolve)(CVodeMem cv_mem, N_Vector b, N_Vector ycur, *
910
+ * N_Vector fcur); *
911
+ *-----------------------------------------------------------------*
912
+ * cv_lsolve must solve the linear equation P x = b, where *
913
+ * P is some approximation to (I - gamma J), J = (df/dy)(tn,ycur) *
914
+ * and the RHS vector b is input. The N-vector ycur contains *
915
+ * the solver's current approximation to y(tn) and the vector *
916
+ * fcur contains the N-vector f(tn,ycur). The solution is to be *
917
+ * returned in the vector b. cv_lsolve returns a positive value *
918
+ * for a recoverable error and a negative value for an *
919
+ * unrecoverable error. Success is indicated by a 0 return value. *
920
+ * *
921
+ *******************************************************************/
922
+
923
+ /*******************************************************************
924
+ * *
925
+ * void (*cv_lfree)(CVodeMem cv_mem); *
926
+ *-----------------------------------------------------------------*
927
+ * cv_lfree should free up any memory allocated by the linear *
928
+ * solver. This routine is called once a problem has been *
929
+ * completed and the linear solver is no longer needed. *
930
+ * *
931
+ *******************************************************************/
932
+
933
+
934
+ #endif
935
+ /*
936
+ #ifdef __cplusplus
937
+ }
938
+ #endif
939
+ */
940
+ #endif /* _INC_CVODE_H */