-
Notifications
You must be signed in to change notification settings - Fork 3
/
install.sh
74 lines (64 loc) · 1.62 KB
/
install.sh
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# Full ICStoolbox installation script
# Proceed with care ! Executing will erase every modification you made.
set -e
#Cleaning
rm -rf ~/lib/libCommons.so
rm -rf ~/lib/libNavierStokes.so
rm -rf ~/lib/libElas.so
rm -rf ~/lib/libVelex.so
rm -rf ~/lib/libAdvection.so
rm -rf ~/bin/nstokes
rm -rf ~/bin/elastic
rm -rf ~/bin/advect
rm -rf ~/bin/velext
#Cloning
mkdir -p ~/dev/ICStoolbox
cd ~/dev/ICStoolbox
rm -rf Commons NavierStokes LinearElasticity Advection VelocityExtension
git clone https://github.com/ICStoolbox/Commons.git
git clone https://github.com/ICStoolbox/LinearElasticity.git
git clone https://github.com/ICStoolbox/NavierStokes.git
git clone https://github.com/ICStoolbox/Advection.git
git clone https://github.com/ICStoolbox/VelocityExtension.git
#Compiling
mkdir -p Commons/build
cd Commons/build
cmake ..
make
make install
cd -
mkdir -p LinearElasticity/build
cd LinearElasticity/build
cmake ..
make
make install
cd -
mkdir -p NavierStokes/build
cd NavierStokes/build
cmake ..
make
make install
cd -
mkdir -p Advection/build
cd Advection/build
cmake ..
make
make install
cd -
mkdir -p VelocityExtension/build
cd VelocityExtension/build
cmake ..
make
make install
cd -
#Testing
elastic LinearElasticity/demos/3d/8branch
nstokes NavierStokes/demos/2d/cavity
velext VelocityExtension/demos/disk.mesh -o VelocityExtension/demos/disk.new.sol
#advect Advection/demos/2d/test.mesh -dt 0.001 -s Advection/demos/2d/test.sol -c Advection/demos/2d/test.chi.sol -o Advection/demos/2d/test.chi.sol
#Output
echo ""
echo "#################################"
echo "ICStoolbox successfully installed"
echo "#################################"
echo ""