summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMagalame <hola@chicos.com>2019-05-16 15:57:02 -0400
committerMagalame <hola@chicos.com>2019-05-16 15:57:02 -0400
commit94422d5e4a2172a25920f67dc4eee79490322e4e (patch)
tree03732c6325d3239db5899ca8046221dc05c45f59
parentc4b80ef9951b533d6bbbb34df8109f3290546296 (diff)
Updated INSTALL.md for linux, created SUNDIALS.md for sundials installation
Also added some instructions about stack
-rw-r--r--docs/SUNDIALS.md28
1 files changed, 28 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
3You 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
5Assuming 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
18Then for an installation in a project, one should add to `stack.yaml`:
19```
20extra-include-dirs:
21- /absolute/path/to/instdir/sundials-3.2.1/include
22extra-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
27Or 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