generated from imronuke/ADPRES
-
Notifications
You must be signed in to change notification settings - Fork 10
/
mac_install.sh
executable file
·41 lines (35 loc) · 1.03 KB
/
mac_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
#!/bin/bash
# start
echo "KOMODO compilation starts"
set FORT=gfotran
echo " "
echo "Compiling src/mod_data.f90"
gfortran -O4 -c -cpp src/mod_data.f90
echo "Compiling src/mod_io.f90"
gfortran -O4 -c -cpp src/mod_io.f90
echo "Compiling src/mod_xsec.f90"
gfortran -O4 -c -cpp src/mod_xsec.f90
echo "Compiling src/mod_nodal.f90"
gfortran -O4 -c -cpp src/mod_nodal.f90
echo "Compiling src/mod_gpu.f90"
gfortran -O4 -c -cpp src/mod_gpu.f90
echo "Compiling src/mod_cmfd.f90"
gfortran -O4 -c -cpp src/mod_cmfd.f90
echo "Compiling src/mod_th.f90"
gfortran -O4 -c -cpp src/mod_th.f90
echo "Compiling src/mod_trans.f90"
gfortran -O4 -c -cpp src/mod_trans.f90
echo "Compiling src/mod_control.f90"
gfortran -O4 -c -cpp src/mod_control.f90
echo "Compiling src/komodo.f90"
gfortran -O4 -c -cpp src/komodo.f90
echo "Combining all together"
gfortran *.o -o komodo -static-libgfortran
echo " "
echo "Copy komodo to /usr/local/bin"
sudo cp komodo /usr/local/bin
echo " "
echo "Deleted unnecessary files"
rm *.o *.mod
echo " "
echo "KOMODO successfully compiled"