forked from imronuke/KOMODO
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mac_install.sh
executable file
·39 lines (33 loc) · 935 Bytes
/
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
#!/bin/bash
# start
echo "KOMODO 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/komodo.f90"
gfortran -O4 -c 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"