summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoridontgetoutmuch <dominic@steinitz.org>2019-05-25 17:53:56 +0100
committerGitHub <noreply@github.com>2019-05-25 17:53:56 +0100
commit89c12f2b97f35b5e2722c3a9134516e813b205bd (patch)
tree21825eff8d3ba76fb7e44796d4164fecd7dfb065
parent5e4bb9a51645dd26e4d506ea9aa78c60ccfa138a (diff)
parent94422d5e4a2172a25920f67dc4eee79490322e4e (diff)
Merge pull request #300 from Magalame/update-docs
[WIP] Updating docs
-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