Skip to content

Commit 0029b95

Browse files
#715 update sundials to 4.1.0
1 parent aba1aae commit 0029b95

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

INSTALL-LINUX.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -94,25 +94,25 @@ Before installing scikits.odes, you need to have installed:
9494
- Fortran compiler (e.g. gfortran)
9595
- BLAS/LAPACK install (OpenBLAS is recommended by the scikits.odes developers)
9696
- CMake (for building Sundials)
97-
- Sundials 3.1.1
97+
- Sundials 4.1.0
9898

9999
You can install these on Ubuntu or Debian using apt-get:
100100

101101
```bash
102102
sudo apt-get install python3-dev gfortran gcc cmake libopenblas-dev
103103
```
104104

105-
To install Sundials 3.1.1, on the command-line type:
105+
To install Sundials 4.1.0, on the command-line type:
106106

107107
```bash
108108
INSTALL_DIR=`pwd`/sundials
109-
wget https://computation.llnl.gov/projects/sundials/download/sundials-3.1.1.tar.gz
110-
tar -xvf sundials-3.1.1.tar.gz
111-
mkdir build-sundials-3.1.1
112-
cd build-sundials-3.1.1/
113-
cmake -DLAPACK_ENABLE=ON -DSUNDIALS_INDEX_TYPE=int32_t -DBUILD_ARKODE:BOOL=OFF -DEXAMPLES_ENABLE:BOOL=OFF -DCMAKE_INSTALL_PREFIX=$INSTALL_DIR ../sundials-3.1.1/
109+
wget https://computation.llnl.gov/projects/sundials/download/sundials-4.1.0.tar.gz
110+
tar -xvf sundials-4.1.0.tar.gz
111+
mkdir build-sundials-4.1.0
112+
cd build-sundials-4.1.0/
113+
cmake -DLAPACK_ENABLE=ON -DSUNDIALS_INDEX_TYPE=int32_t -DBUILD_ARKODE:BOOL=OFF -DEXAMPLES_ENABLE:BOOL=OFF -DCMAKE_INSTALL_PREFIX=$INSTALL_DIR ../sundials-4.1.0/
114114
make install
115-
rm -r ../sundials-3.1.1
115+
rm -r ../sundials-4.1.0
116116
```
117117

118118
Then install [scikits.odes](https://github.com/bmcage/odes), letting it know the sundials install location:

scripts/install_scikits_odes.sh

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

3-
SUNDIALS_URL=https://github.com/LLNL/sundials/archive/v3.1.1.tar.gz
4-
SUNDIALS_NAME=sundials-3.1.1.tar.gz
3+
SUNDIALS_URL=https://github.com/LLNL/sundials/archive/v4.1.0.tar.gz
4+
SUNDIALS_NAME=sundials-4.1.0.tar.gz
55
CURRENT_DIR=`pwd`
66
TMP_DIR=$CURRENT_DIR/tmp
77
mkdir $TMP_DIR
@@ -10,9 +10,9 @@ INSTALL_DIR=$CURRENT_DIR/sundials
1010
cd $TMP_DIR
1111
wget $SUNDIALS_URL -O $SUNDIALS_NAME
1212
tar -xvf $SUNDIALS_NAME
13-
mkdir build-sundials-3.1.1
14-
cd build-sundials-3.1.1/
15-
cmake -DLAPACK_ENABLE=ON -DSUNDIALS_INDEX_TYPE=int32_t -DBUILD_ARKODE:BOOL=OFF -DEXAMPLES_ENABLE:BOOL=OFF -DCMAKE_INSTALL_PREFIX=$INSTALL_DIR ../sundials-3.1.1/
13+
mkdir build-sundials-4.1.0
14+
cd build-sundials-4.1.0/
15+
cmake -DLAPACK_ENABLE=ON -DSUNDIALS_INDEX_TYPE=int32_t -DBUILD_ARKODE:BOOL=OFF -DEXAMPLES_ENABLE:BOOL=OFF -DCMAKE_INSTALL_PREFIX=$INSTALL_DIR ../sundials-4.1.0/
1616
make install
1717
cd $CURRENT_DIR
1818
rm -rf $TMP_DIR

0 commit comments

Comments
 (0)