-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile.intel
185 lines (150 loc) · 4.95 KB
/
makefile.intel
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
FC = ifort
MC = mpif90
#these are used for opencoarray library don't need w/ intel compiler
#LIB_DIR = /opt/local/lib
#MOD_DIR = /opt/local/include
CODE_DIR = /pfs/acreyes/SlugCode/SlugCode/FDM-Prim/3D/Hydro
HDF5_DIR = /pfs/sw/serial/intel/hdf5-1.8.12
LDFLAGS = -L $(HDF5_DIR)/lib -lhdf5_fortran -lhdf5 -llapack -lblas -lgfortran
#CAF_FLAGS = -coarray -coarray-config-file=$(CODE_DIR)/CAFconfig.txt
CAF_FLAGS = -coarray
# double precision
FFLAGS_OPT2 = -ggdb -g -O3 -r8 -double_size 64\
-132
# quadruple precision
FFLAGS_OPT4 = -ggdb -g -O3 -r16 -double_size 128\
-132
# double precision
FFLAGS_DEBUG2 = -ggdb -g -r8 -double_size 64\
-132
# quadruple precision
FFLAGS_DEBUG4 = -ggdb -g -r16 -double_size 128\
-132
FFLAGS_DOUB = $(FFLAGS_OPT2)
FFLAGS_QUAD = $(FFLAGS_OPT4)
EXE_FILE = slugEuler1d
OBJS = driver_euler1d.o \
read_initFile.o \
read_pars.o \
sim_data.o \
gp_data.o \
gp_WENOinit.o \
gp_MDinit.o \
gp_Fluxinit.o \
gp_MakeStencil.o \
gp_eigens.o \
gpM_eigens.o \
block_data.o \
block_init.o \
block_finalize.o \
sim_init.o \
sim_initBlock.o \
io.o \
bc.o \
bc_corners.o \
DMR.o \
eos.o\
grid_finalize.o \
grid_init.o \
grid_data.o \
primconsflux.o \
cfl.o \
soln_ReconEvolveAvg.o \
soln_FOG.o \
soln_RK2.o \
soln_RK3.o \
soln_RK4.o \
reconstruction.o \
soln_reconstruct.o \
sim_interfaces.o \
soln_getFlux.o \
soln_intFlux.o \
soln_cntrFlux.o \
soln_gpFlux.o \
hll.o \
hllc.o \
roe.o \
averageState.o \
soln_update.o \
soln_PLM.o \
slopeLimiter.o \
soln_PPM.o \
soln_WENO.o \
GP.o \
WENO.o \
soln_GP.o \
soln_gpWENO.o \
linalg.o \
eigensystem.o
#averageState.o \
########################################################################################
#COMPILING AND LINKING USING GENERIC SUFFIX RULE FOR F90
$(EXE_FILE) : $(OBJS)
$(FC) $(CAF_FLAGS) -I$(HDF5_DIR)/include $(FFLAGS_DOUB) $(OBJS) -o $(EXE_FILE) $(LDFLAGS)
@echo "code is now linking..."
#SOME GP ROUTINES NEED QUAD-PRECISION
GP.o: %.o : %.F90
$(FC) $(FFLAGS_QUAD) -c $<
gp_WENOinit.o: %.o : %.F90
$(FC) $(FFLAGS_QUAD) -c $<
gp_MDinit.o: %.o : %.F90
$(FC) $(FFLAGS_QUAD) -c $<
gp_Fluxinit.o: %.o : %.F90
$(FC) $(FFLAGS_QUAD) -c $<
linalg.o: %.o : %.F90
$(FC) $(FFLAGS_QUAD) -c $<
#LET'S APPLY GENERIC SUFFIX RULE HERE FOR FORTRAN 90
.SUFFIXES :
.SUFFIXES : .F90 .o
.F90.o:
$(FC) $(CAF_FLAGS) $(FFLAGS_DOUB) -I$(HDF5_DIR)/include -c $<
#######################################################################################
#SOME USEFUL COMMANDS
clean:
@rm -f *.o *.mod *~ slugEuler1d
#######################################################################################
#LET'S DEFINE SOME MODULE DEPENDENCIES!
driver_euler1d.o: sim_data.o grid_data.o io.o eos.o gp_data.o bc.o
read_pars.o : sim_data.o grid_data.o block_data.o gp_data.o
eos.o : grid_data.o sim_data.o
cfl.o : grid_data.o sim_data.o eigensystem.o
grid_init.o : grid_data.o read_initFile.o
grid_finalize.o : grid_data.o
block_finalize.o : block_data.o
hll.o : grid_data.o primconsflux.o
hllc.o : grid_data.o primconsflux.o
roe.o : grid_data.o primconsflux.o eigensystem.o
io.o : grid_data.o sim_data.o block_data.o
bc.o : grid_data.o sim_data.o block_data.o DMR.o
bc_corners.o : block_data.o sim_data.o grid_data.o
DMR.o : grid_data.o sim_data.o
primconsflux.o : grid_data.o eos.o
block_init.o : block_data.o sim_data.o grid_data.o bc.o
sim_init.o : sim_data.o read_initFile.o
sim_initBlock.o : sim_data.o grid_data.o primconsflux.o block_data.o bc.o
GP.o : gp_data.o
gp_WENOinit.o : gp_data.o linalg.o GP.o
gp_MakeStencil.o : gp_data.o
gp_MDinit.o : linalg.o GP.o gp_data.o grid_data.o
gp_Fluxinit.o : linalg.o GP.o gp_data.o grid_data.o
gp_eigens.o : gp_data.o
gpM_eigens.o : gp_data.o
WENO.o : gp_data.o
soln_gpWENO.o : gp_data.o grid_data.o eigensystem.o primconsflux.o WENO.o sim_data.o
soln_gpFlux.o : gp_data.o sim_data.o
gr_GPinit.o : grid_data.o
sim_GPinit.o : grid_data.o linalg.o GP.o
soln_update.o : grid_data.o primconsflux.o
soln_ReconEvolveAvg.o : grid_data.o sim_data.o primconsflux.o bc.o
soln_RK2.o : grid_data.o primconsflux.o
soln_RK3.o : grid_data.o primconsflux.o
soln_RK4.o : grid_data.o primconsflux.o
reconstruction.o : grid_data.o sim_interfaces.o
soln_reconstruct.o : grid_data.o sim_data.o eigensystem.o primconsflux.o gp_data.o sim_interfaces.o reconstruction.o
soln_getFlux.o : grid_data.o sim_data.o primconsflux.o sim_interfaces.o
soln_FOG.o : grid_data.o eigensystem.o primconsflux.o
soln_PLM.o : grid_data.o sim_data.o slopeLimiter.o eigensystem.o primconsflux.o
soln_PPM.o : grid_data.o sim_data.o slopeLimiter.o eigensystem.o primconsflux.o
soln_WENO.o : grid_data.o sim_data.o eigensystem.o primconsflux.o WENO.o
soln_GP.o : grid_data.o sim_data.o eigensystem.o primconsflux.o
#######################################################################################