source: branches/publications/ORCHIDEE-GMv3.2/ORCHIDEE/src_stomate/AA_make @ 5816

Last change on this file since 5816 was 5816, checked in by jinfeng.chang, 5 years ago

copy ORCHIDEE-GMv3.2 for publication

  • Property svn:keywords set to Id
File size: 7.5 KB
Line 
1#-
2#- $Id$
3#-
4PARALLEL_LIB = $(LIBDIR)/libparallel.a
5SXPARALLEL_LIB = $(PARALLEL_LIB)
6#-Q- sxnec  SXPARALLEL_LIB = $(LIBDIR)/libsxparallel.a
7#-Q- sx6nec SXPARALLEL_LIB = $(LIBDIR)/libsxparallel.a
8#-Q- eshpux SXPARALLEL_LIB = $(LIBDIR)/libsxparallel.a
9#-Q- sx8brodie SXPARALLEL_LIB = $(LIBDIR)/libsxparallel.a
10#-
11PARAM_LIB = $(LIBDIR)/libparameters.a
12SXPARAM_LIB = $(PARAM_LIB)
13#-Q- sxnec  SXPARAM_LIB = $(LIBDIR)/libsxparameters.a
14#-Q- sx6nec SXPARAM_LIB = $(LIBDIR)/libsxparameters.a
15#-Q- eshpux SXPARAM_LIB = $(LIBDIR)/libsxparameters.a
16#-Q- sx8brodie SXPARAM_LIB = $(LIBDIR)/libsxparameters.a
17#-
18ORGLOB_LIB = $(LIBDIR)/liborglob.a
19SXORGLOB_LIB = $(ORGLOB_LIB)
20#-Q- sxnec  SXORGLOB_LIB = $(LIBDIR)/libsxorglob.a
21#-Q- sx6nec SXORGLOB_LIB = $(LIBDIR)/libsxorglob.a
22#-Q- eshpux SXORGLOB_LIB = $(LIBDIR)/libsxorglob.a
23#-Q- sx8brodie SXORGLOB_LIB = $(LIBDIR)/libsxorglob.a
24#-
25MODS1 = stomate_data.f90      \
26        lpj_constraints.f90        \
27        lpj_cover.f90              \
28        lpj_crown.f90              \
29        lpj_establish.f90          \
30        lpj_fire.f90               \
31        lpj_gap.f90                \
32        lpj_kill.f90               \
33        lpj_light.f90              \
34        lpj_pftinout.f90           \
35        stomate_alloc.f90          \
36        stomate_data.f90           \
37        stomate_io.f90             \
38        stomate_litter.f90         \
39        stomate_npp.f90            \
40        stomate_phenology.f90      \
41        stomate_prescribe.f90      \
42        stomate_season.f90         \
43        stomate_soilcarbon.f90     \
44        stomate_turnover.f90       \
45        stomate_vmax.f90           \
46        stomate_lcchange.f90       \
47        grassland_constantes.f90         \
48        grassland_fonctions.f90          \
49        grassland_cutting.f90          \
50        grassland_fertilisation.f90   \
51        grassland_grazing.f90         \
52        grassland_management.f90     \
53        stomate_lpj.f90            \
54        stomate_resp.f90           \
55        stomate.f90
56
57OBJSMODS1 = $(MODS1:.f90=.o)
58#-
59.PRECIOUS : $(MODEL_LIB)
60#-Q- sxnec  .PRECIOUS : $(SXMODEL_LIB)
61#-Q- sx6nec .PRECIOUS : $(SXMODEL_LIB)
62#-Q- eshpux .PRECIOUS : $(SXMODEL_LIB)
63#-Q- sx8brodie .PRECIOUS : $(SXMODEL_LIB)
64#-
65all:
66        $(M_K) libparallel
67        $(M_K) libparameters
68        $(M_K) liborglob
69        $(M_K) m_all
70        @echo stomate is OK
71
72m_all: $(MODEL_LIB)($(OBJSMODS1))
73#-Q- intel m_all: WORK_MOD $(MODEL_LIB)($(OBJSMODS1))
74
75memory:
76#-Q- sxnec      @echo maximum memory must be defined on Rhodes
77#-Q- sxnec      @echo in sh or ksh : ulimit -v unlimited
78#-Q- sxnec      @echo in csh or tcsh : limit vmemoryuse unlimited
79#-Q- sxnec      -/sbin/ulimit -v unlimited
80#-Q- sxnec      -limit vmemoryuse unlimited
81
82libparallel:
83        (cd ../src_parallel; $(M_K) -f Makefile)
84
85libparameters:
86        (cd ../src_parameters; $(M_K) -f Makefile)
87
88liborglob:
89        (cd ../src_global; $(M_K) -f Makefile)
90
91$(MODEL_LIB)(%.o): %.f90
92        $(F_C) $(F_O) -I$(NCDF_INC) $*.f90
93        $(A_C) $(MODEL_LIB) $*.o
94        $(A_C) $(ORCHIDEE_LIB) $*.o
95#-Q- sxnec      $(A_X) $(SXMODEL_LIB) $*.o
96#-Q- sxnec      mv $*.mod $(MODDIR)
97#-Q- sx6nec     $(A_X) $(SXMODEL_LIB) $*.o
98#-Q- sx6nec     mv $*.mod $(MODDIR)
99#-Q- eshpux     $(A_X) $(SXMODEL_LIB) $*.o
100#-Q- eshpux     mv $*.mod $(MODDIR)
101#-Q- sx8mercure         mv $*.mod $(MODDIR)
102#-Q- sx9mercure         mv $*.mod $(MODDIR)
103#-Q- sx8brodie  $(A_X) $(SXMODEL_LIB) $*.o
104#-Q- sx8brodie  mv $*.mod $(MODDIR)
105#-Q- solaris    mv $*.mod $(MODDIR)
106        $(RM) $*.o
107#-Q- intel
108#-Q- intel WORK_MOD:
109#-Q- intel      $(RM) work.pcl
110#-Q- intel      @echo "work.pc" > work.pcl
111#-Q- intel      @echo "../src_parameters/work.pc" >> work.pcl
112#-Q- intel      @echo "../../IOIPSL/src/work.pc" >> work.pcl
113
114config:
115        $(BINDIR)/Fparser -name STOMATE $(MODS1)
116        echo 'Configuration of STOMATE done'
117
118clean:
119        $(RM) $(MODEL_LIB)
120
121$(MODEL_LIB)(stomate.o):          \
122  $(PARAM_LIB)(pft_parameters.o)  \
123  $(MODEL_LIB)(stomate_io.o)      \
124  $(MODEL_LIB)(stomate_lpj.o)
125
126$(MODEL_LIB)(stomate_data.o): \
127  $(PARAM_LIB)(pft_parameters.o)        \
128  $(PARAM_LIB)(constantes.o) 
129
130$(MODEL_LIB)(lpj_constraints.o): \
131  $(MODEL_LIB)(stomate_data.o)
132
133$(MODEL_LIB)(lpj_cover.o): \
134  $(MODEL_LIB)(stomate_data.o)
135
136$(MODEL_LIB)(lpj_crown.o): \
137  $(MODEL_LIB)(stomate_data.o)
138
139$(MODEL_LIB)(lpj_establish.o): \
140  $(MODEL_LIB)(stomate_data.o)
141
142$(MODEL_LIB)(lpj_fire.o): \
143  $(MODEL_LIB)(stomate_data.o)
144
145$(MODEL_LIB)(lpj_gap.o): \
146  $(MODEL_LIB)(stomate_data.o)
147
148$(MODEL_LIB)(lpj_kill.o): \
149  $(MODEL_LIB)(stomate_data.o)
150
151$(MODEL_LIB)(lpj_light.o): \
152  $(MODEL_LIB)(stomate_data.o)
153
154$(MODEL_LIB)(lpj_pftinout.o): \
155  $(MODEL_LIB)(stomate_data.o)
156
157$(MODEL_LIB)(stomate_alloc.o): \
158  $(PARAM_LIB)(pft_parameters.o)        \
159  $(MODEL_LIB)(stomate_data.o)
160
161$(MODEL_LIB)(stomate_io.o): \
162  $(MODEL_LIB)(stomate_data.o) \
163  $(PARALLEL_LIB)(mod_orchidee_para.o)
164
165
166$(MODEL_LIB)(stomate_litter.o): \
167  $(MODEL_LIB)(stomate_data.o)
168
169$(MODEL_LIB)(stomate_npp.o): \
170  $(MODEL_LIB)(stomate_data.o)
171
172$(MODEL_LIB)(stomate_phenology.o): \
173  $(MODEL_LIB)(stomate_data.o)
174
175$(MODEL_LIB)(stomate_prescribe.o): \
176  $(MODEL_LIB)(stomate_data.o)
177
178$(MODEL_LIB)(stomate_resp.o): \
179  $(MODEL_LIB)(stomate_data.o)
180
181$(MODEL_LIB)(stomate_season.o): \
182  $(PARAM_LIB)(pft_parameters.o)        \
183  $(MODEL_LIB)(stomate_data.o)
184
185$(MODEL_LIB)(stomate_soilcarbon.o): \
186  $(MODEL_LIB)(stomate_data.o) \
187  $(ORGLOB_LIB)(grid.o)\
188  $(ORGLOB_LIB)(solar.o)
189
190$(MODEL_LIB)(stomate_turnover.o): \
191  $(MODEL_LIB)(stomate_data.o)
192
193$(MODEL_LIB)(stomate_vmax.o): \
194  $(MODEL_LIB)(stomate_data.o)
195
196$(MODEL_LIB)(stomate_lcchange.o): \
197  $(MODEL_LIB)(stomate_data.o)
198
199$(MODEL_LIB)(grassland_constantes.o): \
200  $(PARAM_LIB)(pft_parameters.o)        \
201  $(PARAM_LIB)(constantes.o)
202
203$(MODEL_LIB)(grassland_fonctions.o): \
204  $(PARAM_LIB)(pft_parameters.o)        \
205  $(PARAM_LIB)(constantes.o)            \
206  $(MODEL_LIB)(grassland_constantes.o)
207
208$(MODEL_LIB)(grassland_fertilisation.o): \
209  $(PARAM_LIB)(pft_parameters.o)        \
210  $(PARAM_LIB)(constantes.o)            \
211  $(MODEL_LIB)(grassland_constantes.o)      \
212  $(MODEL_LIB)(grassland_fonctions.o)
213
214$(MODEL_LIB)(grassland_cutting.o): \
215  $(PARAM_LIB)(pft_parameters.o)        \
216  $(PARAM_LIB)(constantes.o)            \
217  $(MODEL_LIB)(grassland_constantes.o)      \
218  $(MODEL_LIB)(grassland_fonctions.o)
219
220$(MODEL_LIB)(grassland_grazing.o): \
221  $(PARAM_LIB)(pft_parameters.o)        \
222  $(PARAM_LIB)(constantes.o)            \
223  $(MODEL_LIB)(grassland_constantes.o)      \
224  $(MODEL_LIB)(grassland_fonctions.o)
225
226$(MODEL_LIB)(grassland_management.o): \
227  $(PARAM_LIB)(pft_parameters.o)        \
228  $(PARAM_LIB)(constantes.o)            \
229  $(MODEL_LIB)(grassland_constantes.o)      \
230  $(MODEL_LIB)(grassland_fonctions.o)       \
231  $(MODEL_LIB)(grassland_grazing.o)      \
232  $(MODEL_LIB)(grassland_cutting.o)       \
233  $(MODEL_LIB)(grassland_fertilisation.o)
234
235$(MODEL_LIB)(stomate_lpj.o):            \
236  $(MODEL_LIB)(lpj_constraints.o)       \
237  $(MODEL_LIB)(lpj_cover.o)             \
238  $(MODEL_LIB)(lpj_crown.o)             \
239  $(MODEL_LIB)(lpj_establish.o)         \
240  $(MODEL_LIB)(lpj_fire.o)              \
241  $(MODEL_LIB)(lpj_gap.o)               \
242  $(MODEL_LIB)(lpj_kill.o)              \
243  $(MODEL_LIB)(lpj_light.o)             \
244  $(MODEL_LIB)(lpj_pftinout.o)          \
245  $(MODEL_LIB)(stomate_alloc.o)         \
246  $(MODEL_LIB)(stomate_data.o)          \
247  $(MODEL_LIB)(stomate_litter.o)        \
248  $(MODEL_LIB)(stomate_npp.o)           \
249  $(MODEL_LIB)(stomate_phenology.o)     \
250  $(MODEL_LIB)(stomate_prescribe.o)     \
251  $(MODEL_LIB)(stomate_season.o)        \
252  $(MODEL_LIB)(stomate_soilcarbon.o)    \
253  $(MODEL_LIB)(stomate_turnover.o)      \
254  $(MODEL_LIB)(stomate_vmax.o)          \
255  $(MODEL_LIB)(stomate_resp.o)          \
256  $(MODEL_LIB)(stomate_lcchange.o)      \
257  $(MODEL_LIB)(grassland_management.o)
258
Note: See TracBrowser for help on using the repository browser.