1 | SHELL = /bin/bash |
---|
2 | MAIN = FLEXPART_GFORTRAN |
---|
3 | # |
---|
4 | |
---|
5 | FC = ifort |
---|
6 | INCPATH = /usr/local/ecmwf_tools/reloc/include |
---|
7 | LIBPATH1 = /usr/local/ecmwf_tools/reloc/lib |
---|
8 | LIBPATH2 = /usr/local/lib |
---|
9 | #FFLAGS = -O3 -g -fbounds-check -m64 -mcmodel=medium -fconvert=little-endian -frecord-marker=4 -I$(INCPATH) |
---|
10 | FFLAGS = -O1 -g -fpp -openmp -traceback -I$(INCPATH) |
---|
11 | #FFLAGS = -O1 -g -cpp -m64 -fbacktrace -mcmodel=medium -fconvert=little-endian -frecord-marker=4 -I$(INCPATH) |
---|
12 | LDFLAGS = $(FFLAGS) -L$(LIBPATH2) -L$(LIBPATH1) -lgrib_api_f90 -lgrib_api -lm -lopenjpeg |
---|
13 | # |
---|
14 | |
---|
15 | MODOBJS = \ |
---|
16 | par_mod.o com_mod.o \ |
---|
17 | conv_mod.o hanna_mod.o \ |
---|
18 | interpol_mod.o cmapf_mod.o \ |
---|
19 | unc_mod.o oh_mod.o \ |
---|
20 | xmass_mod.o flux_mod.o \ |
---|
21 | point_mod.o outg_mod.o \ |
---|
22 | random_mod.o |
---|
23 | |
---|
24 | OBJECTS = \ |
---|
25 | writeheader.o assignland.o\ |
---|
26 | calcpar.o part0.o \ |
---|
27 | caldate.o partdep.o \ |
---|
28 | coordtrafo.o psih.o \ |
---|
29 | raerod.o \ |
---|
30 | drydepokernel.o \ |
---|
31 | readavailable.o \ |
---|
32 | ew.o readcommand.o \ |
---|
33 | advance.o readdepo.o \ |
---|
34 | releaseparticles.o psim.o \ |
---|
35 | FLEXPART.o readlanduse.o \ |
---|
36 | getfields.o init_domainfill.o\ |
---|
37 | interpol_wind.o readoutgrid.o \ |
---|
38 | interpol_all.o readpaths.o \ |
---|
39 | getrb.o readreceptors.o \ |
---|
40 | getrc.o readreleases.o \ |
---|
41 | getvdep.o readspecies.o \ |
---|
42 | interpol_misslev.o readwind.o \ |
---|
43 | conccalc.o richardson.o \ |
---|
44 | concoutput.o scalev.o \ |
---|
45 | pbl_profile.o readOHfield.o\ |
---|
46 | juldate.o timemanager.o \ |
---|
47 | interpol_vdep.o interpol_rain.o \ |
---|
48 | verttransform.o partoutput.o \ |
---|
49 | hanna.o wetdepokernel.o \ |
---|
50 | mean.o wetdepo.o \ |
---|
51 | hanna_short.o windalign.o \ |
---|
52 | obukhov.o gridcheck.o \ |
---|
53 | hanna1.o initialize.o \ |
---|
54 | gridcheck_nests.o \ |
---|
55 | readwind_nests.o calcpar_nests.o \ |
---|
56 | verttransform_nests.o interpol_all_nests.o \ |
---|
57 | interpol_wind_nests.o interpol_misslev_nests.o \ |
---|
58 | interpol_vdep_nests.o interpol_rain_nests.o \ |
---|
59 | getvdep_nests.o \ |
---|
60 | readageclasses.o readpartpositions.o \ |
---|
61 | calcfluxes.o fluxoutput.o \ |
---|
62 | qvsat.o skplin.o \ |
---|
63 | convmix.o calcmatrix.o \ |
---|
64 | convect43c.o redist.o \ |
---|
65 | sort2.o distance.o \ |
---|
66 | centerofmass.o plumetraj.o \ |
---|
67 | openouttraj.o calcpv.o \ |
---|
68 | calcpv_nests.o distance2.o \ |
---|
69 | clustering.o interpol_wind_short.o \ |
---|
70 | interpol_wind_short_nests.o shift_field_0.o \ |
---|
71 | shift_field.o outgrid_init.o \ |
---|
72 | openreceptors.o boundcond_domainfill.o\ |
---|
73 | partoutput_short.o readoutgrid_nest.o \ |
---|
74 | outgrid_init_nest.o writeheader_nest.o \ |
---|
75 | concoutput_nest.o wetdepokernel_nest.o \ |
---|
76 | drydepokernel_nest.o zenithangle.o \ |
---|
77 | ohreaction.o getvdep_nests.o \ |
---|
78 | initial_cond_calc.o initial_cond_output.o \ |
---|
79 | dynamic_viscosity.o get_settling.o |
---|
80 | |
---|
81 | |
---|
82 | $(MAIN): $(MODOBJS) $(OBJECTS) |
---|
83 | $(FC) *.o -o $(MAIN) $(LDFLAGS) |
---|
84 | |
---|
85 | $(OBJECTS): $(MODOBJS) |
---|
86 | |
---|
87 | %.o: %.f90 |
---|
88 | $(FC) -c $(FFLAGS) $< |
---|
89 | |
---|
90 | clean: |
---|
91 | rm *.o *.mod |
---|
92 | |
---|