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