forked from SHUD-System/SHUD
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure
executable file
·55 lines (44 loc) · 1.17 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 "download from github: wget https://codeload.github.com/LLNL/sundials/zip/master"
#wget -c https://codeload.github.com/LLNL/sundials/zip/master -O sundials.zip
#echo "unzip sundials.zip"
#unzip sundials.zip
echo "git clone https://github.com/LLNL/sundials.git"
git clone https://github.com/LLNL/sundials.git
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 \
../../sundials
echo "make"
make
echo "make install"
make install