Changeset 19
- Timestamp:
- Dec 16, 2013, 6:38:08 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ignacio/FLEXPART_9.1.8/src/makefile
r18 r19 1 1 SHELL = /bin/bash 2 #MAIN = FP_ecmwf_gfortran 3 MAIN = FLEXPART_laptop 4 # 5 6 TARGET = laptop 2 TARGET = local 3 WINDS=ecmwf 4 #WINDS=gfs 5 #WINDS=fnl 7 6 8 7 FC = gfortran 9 INCPATH = /xnilu_wrk/flex_wrk/bin64/grib_api/include10 LIBPATH1 = /xnilu_wrk/flex_wrk/bin64/grib_api/lib11 #LIBPATH2 = /flex_wrk/flexpart/lib64/gfortran/lib/12 LIBPATH2 = /usr/lib/x86_64-linux-gnu/13 #LIBPATH2 = /flex_wrk/flexpart/lib64/gfortran/lib/14 8 FFLAGS = -O2 -m64 -mcmodel=medium -fconvert=little-endian -frecord-marker=4 -I$(INCPATH) 15 #FFLAGS = -fbounds-check -m64 -mcmodel=medium -fconvert=little-endian -frecord-marker=4 -I$(INCPATH)16 LDFLAGS = $(FFLAGS) -L$(LIBPATH2) -L$(LIBPATH1) -lgrib_api_f90 -lgrib_api -lm -ljasper17 #18 9 19 # options for nordre 20 # INCPATH = /xnilu_wrk/flex_wrk/bin64/grib_api/include 21 # LIBPATH1 = /xnilu_wrk/flex_wrk/bin64/grib_api/lib 22 # LIBPATH2 = /usr/lib/x86_64-linux-gnu/ 23 # #FFLAGS = -O2 -m64 -mcmodel=medium -fconvert=little-endian -frecord-marker=4 -I$(INCPATH) 24 # LDFLAGS = $(FFLAGS) -L$(LIBPATH2) -L$(LIBPATH1) -lgrib_api_f90 -lgrib_api -lm -ljasper 25 26 27 ifeq ($(TARGET),laptop)28 # options for Lion29 libs_dir=/Users/ignacio _in_EBCRPA/flexpart/libs/10 ifeq ($(TARGET),dmz) 11 # options for ganglia 12 INCPATH = /xnilu_wrk/flex_wrk/bin64/grib_api/include 13 LIBPATH1 = /xnilu_wrk/flex_wrk/bin64/grib_api/lib 14 LIBPATH2 = /usr/lib/x86_64-linux-gnu/ 15 MAIN = FLEXPART_dmz_ 16 endif 17 ifeq ($(TARGET),local) 18 # local options 19 #libs_dir=/.../flexpart/libs/ 20 libs_dir=/Users/ignacio/flexpart/libs/ 30 21 INCPATH = $(libs_dir)/grib_api-1.9.9_dir/include 31 22 LIBPATH1 = $(libs_dir)/grib_api-1.9.9_dir/lib 32 23 LIBPATH2 = $(libs_dir)/jasper_dir/lib 33 MAIN = FLEXPART_l aptop24 MAIN = FLEXPART_local_ 34 25 endif 26 27 LDFLAGS = $(FFLAGS) -L$(LIBPATH2) -L$(LIBPATH1) -lgrib_api_f90 -lgrib_api -lm -ljasper 35 28 36 29 MODOBJS = \ … … 44 37 OBJECTS = \ 45 38 writeheader.o writeheader_txt.o writeheader_surf.o assignland.o\ 46 calcpar.opart0.o \39 part0.o \ 47 40 caldate.o partdep.o \ 48 41 coordtrafo.o psih.o \ … … 60 53 getrc.o readreleases.o \ 61 54 getvdep.o readspecies.o \ 62 interpol_misslev.o readwind.o\63 conccalc.o richardson.o\55 interpol_misslev.o \ 56 conccalc.o \ 64 57 concoutput.o concoutput_surf.o scalev.o \ 65 58 pbl_profile.o readOHfield.o\ 66 59 juldate.o timemanager.o \ 67 60 interpol_vdep.o interpol_rain.o \ 68 verttransform.opartoutput.o \61 partoutput.o \ 69 62 hanna.o wetdepokernel.o \ 70 63 mean.o wetdepo.o \ 71 64 hanna_short.o windalign.o \ 72 obukhov.o gridcheck.o \73 65 hanna1.o initialize.o \ 74 gridcheck_nests.o \ 75 readwind_nests.o calcpar_nests.o \ 66 calcpar_nests.o \ 76 67 verttransform_nests.o interpol_all_nests.o \ 77 68 interpol_wind_nests.o interpol_misslev_nests.o \ 78 69 interpol_vdep_nests.o interpol_rain_nests.o \ 79 getvdep_nests.o \ 70 getvdep_nests.o gridcheck_nests.o \ 71 readwind_nests.o \ 80 72 readageclasses.o readpartpositions.o \ 81 73 calcfluxes.o fluxoutput.o \ 82 74 qvsat.o skplin.o \ 83 convmix.o calcmatrix.o \84 75 convect43c.o redist.o \ 85 76 sort2.o distance.o \ … … 100 91 101 92 102 $(MAIN): $(MODOBJS) $(OBJECTS) 103 $(FC) *.o -o $(MAIN) $(LDFLAGS) 93 ifeq ($(WINDS),ecmwf) 94 OBJECTS_WINDS = \ 95 calcpar.o readwind.o \ 96 richardson.o verttransform.o \ 97 obukhov.o gridcheck.o \ 98 convmix.o calcmatrix.o 99 endif 100 101 ifeq ($(WINDS),gfs) 102 OBJECTS_WINDS = \ 103 calcpar_gfs.o readwind_gfs.o \ 104 richardson_gfs.o verttransform_gfs.o \ 105 obukhov_gfs.o gridcheck_gfs.o \ 106 convmix_gfs.o calcmatrix_gfs.o 107 endif 108 109 $(MAIN): $(MODOBJS) $(OBJECTS) $(OBJECTS_WINDS) 110 $(FC) *.o -o $(MAIN)_$(WINDS) $(LDFLAGS) 104 111 105 112 $(OBJECTS): $(MODOBJS)
Note: See TracChangeset
for help on using the changeset viewer.