source: branches/publications/ORCHIDEE_IPSLCM5A2.1.r5307/ORCHIDEE/src_global/AA_make @ 7683

Last change on this file since 7683 was 3831, checked in by josefine.ghattas, 8 years ago

Integrated modifications done in branch ORCHIDEE-DYNAMICO between revision 3129 (start of the branch) and including revision 3830 (current version of the branch).

The modifications consist in a reorganization of the code related to the interpolations. Generic subroutines and functions are added into a new module interpweight. These new subroutines are called from the modules in src_sechiba instead of calling IOIPSL directly.

These modifications do not change the method of the interpolations except for read_reftempfile in thermosoil and thermosoilc where previously an old method for interpolation were used.

The results changes slightly due to the reorganization of the code.

Work done by Lluis Fita

  • Property svn:keywords set to Id
File size: 1.7 KB
Line 
1#-
2#- $Id$
3#-
4PARAM_LIB = $(LIBDIR)/libparameters.a
5SXPARAM_LIB = $(PARAM_LIB)
6#-Q- sxnec  SXPARAM_LIB = $(LIBDIR)/libsxparameters.a
7#-Q- sx6nec SXPARAM_LIB = $(LIBDIR)/libsxparameters.a
8#-Q- eshpux SXPARAM_LIB = $(LIBDIR)/libsxparameters.a
9#-Q- sx8brodie SXPARAM_LIB = $(LIBDIR)/libsxparameters.a
10#-
11MODS1 = grid.f90           \
12        solar.f90          \
13        interpol_help.f90  \
14        gauss_jordan_method.f90 \
15        interpweight.f90
16
17OBJSMODS1 = $(MODS1:.f90=.o)
18#-
19.PRECIOUS : $(MODEL_LIB)
20#-Q- sxnec  .PRECIOUS : $(SXMODEL_LIB)
21#-Q- sx6nec .PRECIOUS : $(SXMODEL_LIB)
22#-Q- eshpux .PRECIOUS : $(SXMODEL_LIB)
23#-Q- sx8brodie .PRECIOUS : $(SXMODEL_LIB)
24#-
25all:
26        $(M_K) libparallel
27        $(M_K) libparameters
28        $(M_K) m_all
29        @echo orglob is OK
30
31m_all: $(MODEL_LIB)($(OBJSMODS1))
32
33libparallel:
34        (cd ../src_parallel; $(M_K) -f Makefile)
35
36libparameters:
37        (cd ../src_parameters; $(M_K) -f Makefile)
38
39$(MODEL_LIB)(%.o) : %.f90
40        $(F_C) $(F_O) -I$(NCDF_INC) $*.f90
41        $(A_C) $(MODEL_LIB) $*.o
42        $(A_C) $(ORCHIDEE_LIB) $*.o
43#-Q- sxnec      $(A_X) $(SXMODEL_LIB) $*.o
44#-Q- sxnec      mv $*.mod $(MODDIR)
45#-Q- sx6nec     $(A_X) $(SXMODEL_LIB) $*.o
46#-Q- sx6nec     mv $*.mod $(MODDIR)
47#-Q- eshpux     $(A_X) $(SXMODEL_LIB) $*.o
48#-Q- eshpux     mv $*.mod $(MODDIR)
49#-Q- sx8mercure         mv $*.mod $(MODDIR)
50#-Q- sx9mercure         mv $*.mod $(MODDIR)
51#-Q- sx8brodie  $(A_X) $(SXMODEL_LIB) $*.o
52#-Q- sx8brodie  mv $*.mod $(MODDIR)
53#-Q- solaris    mv $*.mod $(MODDIR)
54        $(RM) $*.o
55
56config :
57        $(BINDIR)/Fparser -name ORGLOB $(MODS1)
58        echo 'Configuration of ORGLOB done'
59
60clean:
61        $(RM) $(MODEL_LIB)
62
63$(MODEL_LIB)(grid.o): \
64  $(PARAM_LIB)(constantes.o)
65
66$(MODEL_LIB)(interpol_help.o): \
67  $(PARAM_LIB)(constantes.o)
68
69$(MODEL_LIB)(gauss_jordan_method.o): \
70  $(PARAM_LIB)(constantes.o)
71
72$(MODEL_LIB)(interpweight.o): \
73  $(PARAM_LIB)(constantes.o)
Note: See TracBrowser for help on using the repository browser.