diff options
-rw-r--r-- | docs/SUNDIALS.md | 28 | ||||
-rw-r--r-- | packages/special/lib/Numeric/GSL/Special/Bessel.hs | 1 | ||||
-rw-r--r-- | packages/special/lib/Numeric/GSL/Special/Ellint.hs | 1 |
3 files changed, 30 insertions, 0 deletions
diff --git a/docs/SUNDIALS.md b/docs/SUNDIALS.md new file mode 100644 index 0000000..e413131 --- /dev/null +++ b/docs/SUNDIALS.md | |||
@@ -0,0 +1,28 @@ | |||
1 | # Sundials installation | ||
2 | |||
3 | You can download the Sundials source files [here](https://computation.llnl.gov/projects/sundials/sundials-software). Note: `hmatrix-sundials` doesn't work with versions superior to 3.2.1 (4.0.0 and above). | ||
4 | |||
5 | Assuming we choose the 3.2.1 version: | ||
6 | |||
7 | $ wget https://computation.llnl.gov/projects/sundials/download/sundials-3.2.1.tar.gz | ||
8 | $ tar -xzf sundials-3.2.1.tar.gz | ||
9 | $ cd sundials-3.2.1 | ||
10 | $ mkdir instdir | ||
11 | $ mkdir builddir | ||
12 | $ cd builddir | ||
13 | $ cmake -DCMAKE_INSTALL_PREFIX=/absolute/path/to/sundials-3.2.1/instdir -DEXAMPLES_INSTALL_PATH=/absolute/path/to/sundials-3.2.1/instdir/examples ../../sundials-3.2.1 | ||
14 | $ make | ||
15 | $ make install | ||
16 | |||
17 | |||
18 | Then for an installation in a project, one should add to `stack.yaml`: | ||
19 | ``` | ||
20 | extra-include-dirs: | ||
21 | - /absolute/path/to/instdir/sundials-3.2.1/include | ||
22 | extra-lib-dirs: | ||
23 | - /absolute/path/to/instdir/sundials-3.2.1/builddir/src/cvode | ||
24 | - /absolute/path/to/instdir/sundials-3.2.1/builddir/src/arkode | ||
25 | ``` | ||
26 | |||
27 | Or in the global scope: `stack install hmatrix-sundials --extra-lib-dirs=/absolute/path/to/instdir/sundials-3.2.1/builddir/src/arkode --extra-lib-dirs=//absolute/path/to/instdir/sundials-3.2.1/builddir/src/cvode --extra-include-dirs=/absolute/path/to/instdir/sundials-3.2.1/include` | ||
28 | |||
diff --git a/packages/special/lib/Numeric/GSL/Special/Bessel.hs b/packages/special/lib/Numeric/GSL/Special/Bessel.hs index 84d4cf5..8dd3d92 100644 --- a/packages/special/lib/Numeric/GSL/Special/Bessel.hs +++ b/packages/special/lib/Numeric/GSL/Special/Bessel.hs | |||
@@ -106,6 +106,7 @@ module Numeric.GSL.Special.Bessel( | |||
106 | , bessel_zero_J1 | 106 | , bessel_zero_J1 |
107 | , bessel_zero_Jnu_e | 107 | , bessel_zero_Jnu_e |
108 | , bessel_zero_Jnu | 108 | , bessel_zero_Jnu |
109 | , Precision(..) | ||
109 | ) where | 110 | ) where |
110 | 111 | ||
111 | import Foreign(Ptr) | 112 | import Foreign(Ptr) |
diff --git a/packages/special/lib/Numeric/GSL/Special/Ellint.hs b/packages/special/lib/Numeric/GSL/Special/Ellint.hs index 678f6db..a2800cd 100644 --- a/packages/special/lib/Numeric/GSL/Special/Ellint.hs +++ b/packages/special/lib/Numeric/GSL/Special/Ellint.hs | |||
@@ -38,6 +38,7 @@ module Numeric.GSL.Special.Ellint( | |||
38 | , ellint_RF | 38 | , ellint_RF |
39 | , ellint_RJ_e | 39 | , ellint_RJ_e |
40 | , ellint_RJ | 40 | , ellint_RJ |
41 | , Precision(..) | ||
41 | ) where | 42 | ) where |
42 | 43 | ||
43 | import Foreign(Ptr) | 44 | import Foreign(Ptr) |