-
Notifications
You must be signed in to change notification settings - Fork 0
/
Allmake.sh
executable file
·66 lines (57 loc) · 1.45 KB
/
Allmake.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
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
#!/bin/bash
echo Making the debug directory ...
DIRDebug=debugoutputA
DIRThreaded=OutputThreaded
mkdir "$DIRDebug"
mkdir "$DIRThreaded"
echo Compiling the SWMMengine ...
# Compiler/Linker settings
FC=gfortran-9
OPTFLAGS=-g
FFLAGS=-02
PROGRAM=SWMM
PRG_OBJ=$PROGRAM.o
echo Choosing $FC as a compiler ...
# Find all source files, create a list of corresponding object files
echo Find all source files, create a list of corresponding object files ...
# Find all source files, create a list of corresponding object files
SOURCESF=" type_definitions.f08\
setting_definition.f08\
globals.f08\
array_index.f08\
data_keys.f08\
utility.f08\
adjustments.f08\
allocate_storage.f08\
bc.f08\
read_width_depth.f08\
case_waller_creek.f08\
case_simple_channel.f08\
case_y_channel.f08\
checking.f08\
debug.f08\
diagnostic.f08\
junction.f08\
element_dynamics.f08\
element_geometry.f08\
face_values.f08\
explicit_euler.f08\
friction_model.f08\
initial_condition.f08\
initialization.f08\
link_node.f08\
network_define.f08\
output.f08\
test_cases.f08\
runge_kutta.f08\
time_loop.f08\
main.f08\
stub.f08\
"
# Linker
echo Compiling ...
$FC -o $PROGRAM $SOURCESF
$clean:
echo Clean Object files...
#rm -rf *.o *.mod
echo Complete!