-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathbuild_cluster.sh
More file actions
executable file
·40 lines (34 loc) · 890 Bytes
/
Copy pathbuild_cluster.sh
File metadata and controls
executable file
·40 lines (34 loc) · 890 Bytes
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
#!/bin/sh
if [ ! -d "gmsh-4.4.0-Linux64-sdk" ]; then
wget http://gmsh.info/bin/Linux/gmsh-4.4.0-Linux64-sdk.tgz
tar -xf gmsh-4.4.0-Linux64-sdk.tgz
rm -rf gmsh-4.4.0-Linux64-sdk.tgz
fi
if [ ! -d "eigen-eigen-323c052e1731" ]; then
wget http://bitbucket.org/eigen/eigen/get/3.3.7.tar.gz
tar -xf 3.3.7.tar.gz
rm -rf 3.3.7.tar.gz
fi
if [ $1 == "vega" ]; then
module load GCC/4.9.2
elif [ $1 == "nic4" ]; then
module load cmake/3.11.1
module load gcc/4.9.2
fi
export CC=gcc
export CXX=g++
cd gmsh-4.4.0-Linux64-sdk/
export FC=gfortran
export PATH=${PWD}/bin:${PWD}/lib:${PATH}
export INCLUDE=${PWD}/include:${INCLUDE}
export LIB=${PWD}/lib:${LIB}
export PYTHONPATH=${PWD}/lib:${PYTHONPATH}
cd ../
cd eigen-eigen-323c052e1731/
export INCLUDE=${PWD}:${INCLUDE}
cd ../
rm -rf build/
mkdir build
cd build/
cmake ../ -DCMAKE_BUILD_TYPE=Release -G "Unix Makefiles"
make