-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathsetup.sh
executable file
·35 lines (29 loc) · 1.21 KB
/
setup.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
#!/bin/bash
function makeBAT() {
## install dependencies
apt-get install -y python3-numpy python3-dev python3-scipy python3-nose python3-pip gfortran make gmsh libatlas-base-dev libblas-dev liblapack-dev libsuitesparse-dev
pip3 install matplotlib # safer option than apt-get'ing as will install mpl2.0 without conflicting older versions.
## compile Fortran routines
cd backend/fortran/
export FFLAGS=-fallow-argument-mismatch
make
## run tests
echo ''
echo '#####################################################################'
echo ' Executing NumBAT test suite'
echo '#####################################################################'
cd ../../tests/
nosetests3
##
echo ''
echo '#####################################################################'
echo ' NumBAT and its dependencies have been installed '
echo ' and its test cases calculated. '
echo ' Test outputs are: . passed; E errors; F failed. '
echo ''
echo 'NumBAT is brought to you by Bjorn Sturmberg, Kokou Dossou,'
echo 'Chris Poulton and Michael Steel, with support from CUDOS'
echo '#####################################################################'
echo ''
}
makeBAT