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