-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcompile_unix
81 lines (71 loc) · 1.66 KB
/
compile_unix
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
#---------------------------------------------------------------------
# SCRIPT TO COMPILE THE SOURCE CODE OF MEANDER MIGRATION MODEL
# last update: 2022/03/01 by Manuel Bogoni
#---------------------------------------------------------------------
# set the directory with the source code
dir="fortran"
# set the name of the executable
exe="mcmm.exe"
# set the Fortran compiler
fc90="gfortran"
# clean the dashboard
# clear
# enter the directory
cd $dir
# delete older object files
rm *.mod
rm *.o
# compile the modules
$fc90 -c module_global.f90 module_geometry.f90 module_zs.f90
$fc90 -fcheck=all \
main.f90 \
angle.f\
banks.f\
boundaries.f90\
coefZS.f90\
cubecoeff.f\
curv.f\
dashline.f90\
derivative.f\
dUIPS.f\
dUZS.f\
findcutoff.f\
initialize.f90\
integrals_cavsimp.f\
integrals_semiana_functions.f\
k0134.f\
load_floodplain.f90\
load_river.f90\
load_sim.f90\
module_global.f90\
module_geometry.f90\
module_zs.f90\
neckcutoff.f\
print_floodplain.f90\
printcutoff.f90\
print_lambda.f90\
printscreen.f90\
printsim.f90\
printtime.f90\
randomconfig.f90\
randomnormal.f90\
resampling.f\
resistance_dune_bed.f\
resistance_flat_bed.f\
rungeg.f90\
savgolfilter_new.f\
searchpoint_new.f90\
smoothing.f\
storeoxbow.f\
storepointbar.f\
time2sec.f90\
timestep.f\
windingnumber.f90\
zroots.f\
zs_terms.f\
-o $exe
# copy executable code
cp $exe ..
# exit directory
cd ..
echo "$exe : compiled source code!"