-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathMakefile
109 lines (70 loc) · 2.02 KB
/
Makefile
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
# Makefile
# Nom du compilateur
FC = mpiifort
# Options de compilation: optimisation, debug etc...
OPT = -O3 -heap-arrays -fopenmp -mcmodel=large
# -ipo -xCORE-AVX2 -align array32byte -qopenmp -Ofast
# -mcmodel=large
# -heap-arrays 64
EXE = sol0
LINKOPT =
DIR_OBJ = ./obj
DIR_BIN = ./bin
# Defining the objects (OBJS) variables
OBJS = \
variables_module.o \
main.o \
reading_data.o \
gridder.o \
initial_conditions.o \
boundary_conditions.o \
discretisation_QUICK_centre.o \
calcul_new_velocity.o \
check_steady.o \
filer.o \
virtualForceIntegrator.o \
Mpi_division.o \
GS.o \
airfoil.o \
smagorinsky.o \
# Linking object files
exe : $(OBJS)
$(FC) $(OPT) -o $(EXE) \
$(OBJS) \
$(OPT)
@echo " ***************** successful ***************** "
# | Author: Zi-Hsuan Wei
# | Version: 1.8
# | Web: http://smetana.me.ntust.edu.tw/
# | Editor : Hsuan
#
%.o:%.f90
$(FC) $(OPT) -c $<
main.o : variables_module.o
reading_data.o : variables_module.o
gridder.o : variables_module.o
initial_conditions.o : variables_module.o
boundary_conditions.o : variables_module.o
discretisation_upwind.o : variables_module.o
discretisation_QUICK_centre.o : variables_module.o
discretisation_QUICK.o : variables_module.o
calcul_new_velocity.o : variables_module.o
check_steady.o : variables_module.o
filer.o : variables_module.o
virtualForceIntegrator.o : variables_module.o
Mpi_division.o : variables_module.o
airfoil.o : variables_module.o
smagorinsky.o : variables_module.o
# Removing object files
clean :
/bin/rm -f *.dat
/bin/rm -f *.x
/bin/rm -f *.q
cleanall :
/bin/rm -f $(OBJS) $(EXE) *.mod
/bin/rm -f *.dat
/bin/rm -f *.x
/bin/rm -f *.q
config :
if [ ! -d obj ] ; then mkdir obj ; fi
if [ ! -d run ] ; then mkdir bin ; fi