-
Notifications
You must be signed in to change notification settings - Fork 11
/
configure
executable file
·55 lines (42 loc) · 1.11 KB
/
configure
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/bin/bash
path="~/sundials"
installPath="InstallSundials"
echo "Trying to download and install SUNDIALS/CVODE solver for you."
echo ""
#read -p "Where to install?(Default: $path) :" path
#path=${path:-~/sundials}
echo $path
echo "Installing SUNDIALS to $path"
echo "Installing examples to $path/example"
echo ""
rm -rf $installPath
#rm -rf sundials-master
echo wget -c https://github.com/LLNL/sundials/releases/download/v6.0.0/cvode-6.0.0.tar.gz -O cvode.tar.gz
#wget -c https://github.com/LLNL/sundials/releases/download/v6.0.0/cvode-6.0.0.tar.gz -O cvode.tar.gz
echo tar xvf cvode.tar.gz
tar xvf cvode.tar.gz
mkdir $installPath
echo "cd $installPath"
cd $installPath
rm -rf builddir
echo "makedir builddir"
mkdir builddir
echo "cd builddir"
cd builddir/
#ccmake ../../sundials/
echo "start configure...."
cmake -DCMAKE_INSTALL_PREFIX=$path \
-DEXAMPLES_INSTALL_PATH="$path/example" \
-DBUILD_CVODE=ON \
-DBUILD_CVODES=OFF \
-DBUILD_ARKODE=OFF \
-DBUILD_CVODES=OFF \
-DBUILD_IDA=OFF \
-DBUILD_IDAS=OFF \
-DBUILD_KINSOL=OFF \
-DOPENMP_ENABLE=ON \
../../cvode-6.0.0
echo "make"
make
echo "make install"
make install