forked from hyperion-rt/hyperion
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile.in
299 lines (266 loc) · 8.61 KB
/
Makefile.in
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
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
FC = @serial_fc@ @extra_serial@
FCMPI = @mpi_fc@ @extra_mpi@
COMMON = fortranlib/src/base_types.f90 \
fortranlib/src/lib_messages.f90 \
fortranlib/src/lib_io.f90 \
fortranlib/src/lib_version.f90 \
fortranlib/src/lib_algebra.f90 \
fortranlib/src/lib_conf.f90 \
fortranlib/src/lib_array.f90 \
fortranlib/src/lib_statistics.f90 \
fortranlib/src/lib_random.f90 \
fortranlib/src/lib_hdf5_@[email protected] \
fortranlib/src/lib_constants.f90 \
fortranlib/src/type_angle3d.f90 \
fortranlib/src/type_vector3d.f90 \
fortranlib/src/type_stokes.f90 \
fortranlib/src/type_pdf.f90
OBJECTS1 = src/core/type_photon.f90 \
src/main/settings.f90 \
src/main/performance.f90 \
src/images/image_type.f90 \
src/dust/dust_type_4elem.f90 \
src/dust/dust.f90 \
OBJECTS2 = src/grid/grid_physics_3d.f90 \
src/grid/grid_monochromatic.f90 \
src/dust/dust_interact.f90 \
src/sources/source_type.f90 \
src/sources/source.f90 \
src/grid/grid_propagate_3d.f90 \
src/grid/grid_mrw_3d.f90 \
src/grid/grid_pda_3d.f90 \
src/grid/grid_generic.f90 \
src/images/images_binned.f90 \
src/images/images_peeled.f90 \
src/main/forced_interaction.f90 \
src/main/setup_rt.f90
OBJECTS3 = src/main/iter_lucy.f90 \
src/main/iter_final.f90 \
src/main/iter_final_mono.f90 \
src/main/iter_raytracing.f90 \
src/main/main.f90
OBJECTS_CAR_SER = src/mpi/mpi_core_nompi.f90 \
fortranlib/src/@[email protected] \
$(COMMON) \
src/core/core_lib.f90 \
src/main/counters.f90 \
src/mpi/mpi_io_nompi.f90 \
src/grid/type_grid_cartesian_3d.f90 \
src/core/type_cell_id_3d.f90 \
$(OBJECTS1) \
src/grid/grid_io.f90 \
src/grid/grid_geometry_cartesian_3d.f90 \
src/grid/grid_geometry_common_3d.f90 \
src/grid/grid_pda_cartesian_3d.f90 \
$(OBJECTS2) \
src/mpi/mpi_routines_nompi.f90 \
$(OBJECTS3)
OBJECTS_CAR_MPI = src/mpi/mpi_core.f90 \
fortranlib/src/@[email protected] \
$(COMMON) \
src/core/core_lib.f90 \
src/main/counters.f90 \
src/mpi/mpi_io.f90 \
src/grid/type_grid_cartesian_3d.f90 \
src/core/type_cell_id_3d.f90 \
$(OBJECTS1) \
src/grid/grid_io.f90 \
src/grid/grid_geometry_cartesian_3d.f90 \
src/grid/grid_geometry_common_3d.f90 \
src/grid/grid_pda_cartesian_3d.f90 \
$(OBJECTS2) \
src/mpi/mpi_routines.f90 \
$(OBJECTS3)
OBJECTS_AMR_SER = src/mpi/mpi_core_nompi.f90 \
fortranlib/src/@[email protected] \
$(COMMON) \
src/core/core_lib.f90 \
src/main/counters.f90 \
src/mpi/mpi_io_nompi.f90 \
src/grid/type_grid_amr.f90 \
src/core/type_cell_id_amr.f90 \
$(OBJECTS1) \
src/grid/grid_io_amr.f90 \
src/grid/grid_geometry_amr.f90 \
src/grid/grid_geometry_common_3d.f90 \
src/grid/grid_pda_disabled.f90 \
$(OBJECTS2) \
src/mpi/mpi_routines_nompi.f90 \
$(OBJECTS3)
OBJECTS_AMR_MPI = src/mpi/mpi_core.f90 \
fortranlib/src/@[email protected] \
$(COMMON) \
src/core/core_lib.f90 \
src/main/counters.f90 \
src/mpi/mpi_io.f90 \
src/grid/type_grid_amr.f90 \
src/core/type_cell_id_amr.f90 \
$(OBJECTS1) \
src/grid/grid_io_amr.f90 \
src/grid/grid_geometry_amr.f90 \
src/grid/grid_geometry_common_3d.f90 \
src/grid/grid_pda_disabled.f90 \
$(OBJECTS2) \
src/mpi/mpi_routines.f90 \
$(OBJECTS3)
OBJECTS_OCT_SER = src/mpi/mpi_core_nompi.f90 \
fortranlib/src/@[email protected] \
$(COMMON) \
src/core/core_lib.f90 \
src/main/counters.f90 \
src/mpi/mpi_io_nompi.f90 \
src/grid/type_grid_octree.f90 \
src/core/type_cell_id_octree.f90 \
$(OBJECTS1) \
src/grid/grid_io_1d.f90 \
src/grid/grid_geometry_octree.f90 \
src/grid/grid_geometry_common_3d.f90 \
src/grid/grid_pda_disabled.f90 \
$(OBJECTS2) \
src/mpi/mpi_routines_nompi.f90 \
$(OBJECTS3)
OBJECTS_OCT_MPI = src/mpi/mpi_core.f90 \
fortranlib/src/@[email protected] \
$(COMMON) \
src/core/core_lib.f90 \
src/main/counters.f90 \
src/mpi/mpi_io.f90 \
src/grid/type_grid_octree.f90 \
src/core/type_cell_id_octree.f90 \
$(OBJECTS1) \
src/grid/grid_io_1d.f90 \
src/grid/grid_geometry_octree.f90 \
src/grid/grid_geometry_common_3d.f90 \
src/grid/grid_pda_disabled.f90 \
$(OBJECTS2) \
src/mpi/mpi_routines.f90 \
$(OBJECTS3)
OBJECTS_VOR_SER = src/mpi/mpi_core_nompi.f90 \
fortranlib/src/@[email protected] \
$(COMMON) \
src/extern/kdtree2/kdtree2.f90 \
src/core/core_lib.f90 \
src/main/counters.f90 \
src/mpi/mpi_io_nompi.f90 \
src/grid/type_grid_voronoi.f90 \
src/core/type_cell_id_octree.f90 \
$(OBJECTS1) \
src/grid/grid_io_1d.f90 \
src/grid/grid_geometry_voronoi.f90 \
src/grid/grid_geometry_common_3d.f90 \
src/grid/grid_pda_disabled.f90 \
$(OBJECTS2) \
src/mpi/mpi_routines_nompi.f90 \
$(OBJECTS3)
OBJECTS_VOR_MPI = src/mpi/mpi_core.f90 \
fortranlib/src/@[email protected] \
$(COMMON) \
src/extern/kdtree2/kdtree2.f90 \
src/core/core_lib.f90 \
src/main/counters.f90 \
src/mpi/mpi_io.f90 \
src/grid/type_grid_voronoi.f90 \
src/core/type_cell_id_octree.f90 \
$(OBJECTS1) \
src/grid/grid_io_1d.f90 \
src/grid/grid_geometry_voronoi.f90 \
src/grid/grid_geometry_common_3d.f90 \
src/grid/grid_pda_disabled.f90 \
$(OBJECTS2) \
src/mpi/mpi_routines.f90 \
$(OBJECTS3)
OBJECTS_SPH_SER = src/mpi/mpi_core_nompi.f90 \
fortranlib/src/@[email protected] \
$(COMMON) \
src/core/core_lib.f90 \
src/main/counters.f90 \
src/mpi/mpi_io_nompi.f90 \
src/grid/type_grid_spherical_3d.f90 \
src/core/type_cell_id_3d.f90 \
$(OBJECTS1) \
src/grid/grid_io.f90 \
src/grid/grid_geometry_spherical_3d.f90 \
src/grid/grid_geometry_common_3d.f90 \
src/grid/grid_pda_spherical_3d.f90 \
$(OBJECTS2) \
src/mpi/mpi_routines_nompi.f90 \
$(OBJECTS3)
OBJECTS_SPH_MPI = src/mpi/mpi_core.f90 \
fortranlib/src/@[email protected] \
$(COMMON) \
src/core/core_lib.f90 \
src/main/counters.f90 \
src/mpi/mpi_io.f90 \
src/grid/type_grid_spherical_3d.f90 \
src/core/type_cell_id_3d.f90 \
$(OBJECTS1) \
src/grid/grid_io.f90 \
src/grid/grid_geometry_spherical_3d.f90 \
src/grid/grid_geometry_common_3d.f90 \
src/grid/grid_pda_spherical_3d.f90 \
$(OBJECTS2) \
src/mpi/mpi_routines.f90 \
$(OBJECTS3)
OBJECTS_CYL_SER = src/mpi/mpi_core_nompi.f90 \
fortranlib/src/@[email protected] \
$(COMMON) \
src/core/core_lib.f90 \
src/main/counters.f90 \
src/mpi/mpi_io_nompi.f90 \
src/grid/type_grid_cylindrical_3d.f90 \
src/core/type_cell_id_3d.f90 \
$(OBJECTS1) \
src/grid/grid_io.f90 \
src/grid/grid_geometry_cylindrical_3d.f90 \
src/grid/grid_geometry_common_3d.f90 \
src/grid/grid_pda_cylindrical_3d.f90 \
$(OBJECTS2) \
src/mpi/mpi_routines_nompi.f90 \
$(OBJECTS3)
OBJECTS_CYL_MPI = src/mpi/mpi_core.f90 \
fortranlib/src/@[email protected] \
$(COMMON) \
src/core/core_lib.f90 \
src/main/counters.f90 \
src/mpi/mpi_io.f90 \
src/grid/type_grid_cylindrical_3d.f90 \
src/core/type_cell_id_3d.f90 \
$(OBJECTS1) \
src/grid/grid_io.f90 \
src/grid/grid_geometry_cylindrical_3d.f90 \
src/grid/grid_geometry_common_3d.f90 \
src/grid/grid_pda_cylindrical_3d.f90 \
$(OBJECTS2) \
src/mpi/mpi_routines.f90 \
$(OBJECTS3)
all: car_serial car_mpi sph_serial sph_mpi cyl_serial cyl_mpi oct_serial oct_mpi amr_serial amr_mpi vor_serial vor_mpi
serial: car_serial sph_serial cyl_serial oct_serial amr_serial vor_serial
mpi: car_mpi sph_mpi cyl_mpi oct_mpi amr_mpi vor_mpi
car_serial: $(OBJECTS_CAR_SER)
$(FC) $(OBJECTS_CAR_SER) -o bin/hyperion_car
car_mpi: $(OBJECTS_CAR_MPI)
$(FCMPI) $(OBJECTS_CAR_MPI) -o bin/hyperion_car_mpi
oct_serial: $(OBJECTS_OCT_SER)
$(FC) $(OBJECTS_OCT_SER) -o bin/hyperion_oct
oct_mpi: $(OBJECTS_OCT_MPI)
$(FCMPI) $(OBJECTS_OCT_MPI) -o bin/hyperion_oct_mpi
amr_serial: $(OBJECTS_AMR_SER)
$(FC) $(OBJECTS_AMR_SER) -o bin/hyperion_amr
amr_mpi: $(OBJECTS_AMR_MPI)
$(FCMPI) $(OBJECTS_AMR_MPI) -o bin/hyperion_amr_mpi
sph_serial: $(OBJECTS_SPH_SER)
$(FC) $(OBJECTS_SPH_SER) -o bin/hyperion_sph
sph_mpi: $(OBJECTS_SPH_MPI)
$(FCMPI) $(OBJECTS_SPH_MPI) -o bin/hyperion_sph_mpi
cyl_serial: $(OBJECTS_CYL_SER)
$(FC) $(OBJECTS_CYL_SER) -o bin/hyperion_cyl
cyl_mpi: $(OBJECTS_CYL_MPI)
$(FCMPI) $(OBJECTS_CYL_MPI) -o bin/hyperion_cyl_mpi
vor_serial: $(OBJECTS_VOR_SER)
$(FC) $(OBJECTS_VOR_SER) -o bin/hyperion_vor
vor_mpi: $(OBJECTS_VOR_MPI)
$(FCMPI) $(OBJECTS_VOR_MPI) -o bin/hyperion_vor_mpi
install: bin/hyperion_*
mkdir -p @prefix@/bin
cp -r bin/hyperion_* @prefix@/bin/
clean:; rm *.mod src/*.mod src/*/*.mod *.o */*.o bin/* *~ */*~ fort.* ; echo "This file can be deleted." > bin/empty.txt ; echo "This file can be deleted." > src/modules/empty.txt