forked from imronuke/ADPRES
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·39 lines (33 loc) · 971 Bytes
/
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
#!/bin/bash
# start
echo "ADPRES compilation starts"
set FORT=gfotran
echo " "
echo "Compiling src/mod_data.f90"
gfortran -O4 -c src/mod_data.f90
echo "Compiling src/mod_io.f90"
gfortran -O4 -c src/mod_io.f90
echo "Compiling src/mod_xsec.f90"
gfortran -O4 -c src/mod_xsec.f90
echo "Compiling src/mod_nodal.f90"
gfortran -O4 -c src/mod_nodal.f90
echo "Compiling src/mod_cmfd.f90"
gfortran -O4 -c src/mod_cmfd.f90
echo "Compiling src/mod_th.f90"
gfortran -O4 -c src/mod_th.f90
echo "Compiling src/mod_trans.f90"
gfortran -O4 -c src/mod_trans.f90
echo "Compiling src/mod_control.f90"
gfortran -O4 -c src/mod_control.f90
echo "Compiling src/ADPRES.f90"
gfortran -O4 -c src/ADPRES.f90
echo "Combining all together"
gfortran *.o -g -fbacktrace -ffpe-trap=invalid,zero,overflow,underflow,denormal -o adpres
echo " "
echo "Copy adpres to /usr/bin"
sudo cp adpres /usr/bin
echo " "
echo "Deleted unnecessary files"
rm *.o *.mod
echo " "
echo "ADPRES successfully compiled"