source: CONFIG/trunk/SCRIPT/REGRID_forcage/Makefile @ 1356

Last change on this file since 1356 was 1356, checked in by acosce, 13 years ago

scripts pour regriller les fichiers d'input

File size: 1.5 KB
Line 
1#----------------------------------------------------------------------------
2# S. Szopa lors du passage en 1x1° (01/2009)
3# lit d'anciennes entrees LMDz-INCA sur la grille physique pour le modèle
4# en 96x72 et passe de grille phy a grille dyn
5# interpole en 1x1
6# passe de grille dyn a phy
7# sort un fichier netcdf
8#----------------------------------------------------------------------------
9
10EXC = regrid
11
12#INCLUDES =
13
14#RSUBS = 
15
16#USE_INCL =
17
18FOBJS =  \
19main.o                   check_err.o        get_field.o \
20get_field_landuse.o  get_field_npp.o \
21grid_correspondance.o    dyn2phy.o  dyn2phy_landuse.o        get_grid.o    \
22interpolate.o            interpolate_landuse.o dyngrid_ncfile.o   \
23dyngrid_ncfile_landuse.o dyngrid_ncfile_npp.o  get_grid_lmdz.o \
24phygrid_ncfile.o   phygrid_ncfile_npp.o        phygrid_ncfile_landuse.o\
25phy2dyn.o          phy2dyn_landuse.o   dyngrid_ncfile_init.o 
26
27MOBJS = modules/mods.o
28
29#----------
30# FC   : FORTRAN compiler (sur lscedec2 = f90)
31  FC = ifort
32
33# FFLAGS : command line options to compiler call (if not set, default is
34#          probably some basic optimization level)
35  FFLAGS = -free
36
37# INCS : includes
38  INCS = -I/usr/local/include -I./modules
39
40# LIBS  : libraries required
41  LIBS = -L/usr/local/install/lib -lnetcdff -lnetcdf
42#----------
43
44$(EXC):         $(MOBJS) $(FOBJS) $(USE_INCL) 
45                $(FC) $(FFLAGS) $(FOBJS) $(MOBJS) $(USE_INCL) $(LIBS) -o $@
46
47$(USE_INCL):    $(INCLUDES)
48
49$(MOBJS) :
50                cd modules ; make modules
51
52.f.o:           
53                $(FC) $(FFLAGS) $(INCS) -c $*.f
54
55clean:         
56                rm -f core $(EXC) $(USE_INCL) $(FOBJS)
Note: See TracBrowser for help on using the repository browser.