source: IOIPSL/trunk/example/AA_make @ 50

Last change on this file since 50 was 50, checked in by bellier, 17 years ago

JB:

  • add sx6nec in files (use ins_make -t sx6nec ... for ald codes)
  • use new parameters from AA_make.gdef
  • Property svn:keywords set to Id
File size: 10.3 KB
Line 
1#-
2#- $Id$
3#-
4USER_DIR = $(shell pwd)
5MAKE_DIR = '??'
6ifneq ($(USER_DIR),$(MAKE_DIR))
7 @$(error You must invoke this Makefile from its directory)
8endif
9#-
10all: testhist1 testhist2 testrest testopp testcalendar testflio
11        echo don t forget to do : $(M_K) clean !!!
12
13testhist1:
14        $(M_K) libioipsl
15        $(M_K) testhist1.x
16#-Q- sx8brodie  echo cd $(USER_DIR) > Job_testhist1
17#-Q- sx8brodie  echo '\
18#-Q- sx6nec     echo cd $(USER_DIR) > Job_testhist1
19#-Q- sx6nec     echo '\
20#-Q- sx8mercure echo cd $(USER_DIR) > Job_testhist1
21#-Q- sx8mercure echo '\
22        ./testhist1.x \
23#-Q- sx8brodie ' >> Job_testhist1
24#-Q- sx8brodie  qsub -j o -S /usr/bin/ksh \
25#-Q- sx8brodie   -o $(USER_DIR)/Out_testhist1 Job_testhist1
26#-Q- sx8brodie  echo job Job_testhist1 has been submitted
27#-Q- sx6nec ' >> Job_testhist1
28#-Q- sx6nec     qsub -j o -S /usr/bin/ksh \
29#-Q- sx6nec      -o $(USER_DIR)/Out_testhist1 Job_testhist1
30#-Q- sx6nec     echo job Job_testhist1 has been submitted
31#-Q- sx8mercure ' >> Job_testhist1
32#-Q- sx8mercure qsub -j o -S /usr/bin/ksh \
33#-Q- sx8mercure  -o $(USER_DIR)/Out_testhist1 Job_testhist1
34#-Q- sx8mercure echo job Job_testhist1 has been submitted
35
36        @echo ' '
37        @echo 'file testhist1.nc should be created'
38        @echo 'to see it, type : ncdump -h testhist1.nc'
39        @echo ' '
40
41testhist1.x: testhist1.o
42        $(F_L) -o testhist1.x testhist1.o \
43               $(L_O) $(IOIPSL_LIB) $(NCDF_LIB)
44
45testhist2:
46        $(M_K) libioipsl
47        $(M_K) testhist2.x
48#-Q- sx8brodie  echo cd $(USER_DIR) > Job_testhist2
49#-Q- sx8brodie  echo '\
50#-Q- sx6nec     echo cd $(USER_DIR) > Job_testhist2
51#-Q- sx6nec     echo '\
52#-Q- sx8mercure echo cd $(USER_DIR) > Job_testhist2
53#-Q- sx8mercure echo '\
54        ./testhist2.x \
55#-Q- sx8brodie ' >> Job_testhist2
56#-Q- sx8brodie  qsub -j o -S /usr/bin/ksh \
57#-Q- sx8brodie   -o $(USER_DIR)/Out_testhist2 Job_testhist2
58#-Q- sx8brodie  echo job Job_testhist2 has been submitted
59#-Q- sx6nec ' >> Job_testhist2
60#-Q- sx6nec     qsub -j o -S /usr/bin/ksh \
61#-Q- sx6nec      -o $(USER_DIR)/Out_testhist2 Job_testhist2
62#-Q- sx6nec     echo job Job_testhist2 has been submitted
63#-Q- sx8mercure ' >> Job_testhist2
64#-Q- sx8mercure qsub -j o -S /usr/bin/ksh \
65#-Q- sx8mercure  -o $(USER_DIR)/Out_testhist2 Job_testhist2
66#-Q- sx8mercure echo job Job_testhist2 has been submitted
67
68        @echo ' '
69        @echo 'file testhist2.nc should be created'
70        @echo 'to see it, type : ncdump -h testhist2.nc'
71        @echo ' '
72        @echo 'file testhist2_bis.nc should be created'
73        @echo 'to see it, type : ncdump -h testhist2_bis.nc'
74        @echo ' '
75
76testhist2.x: testhist2.o
77        $(F_L) -o testhist2.x testhist2.o \
78               $(L_O) $(IOIPSL_LIB) $(NCDF_LIB)
79
80testrest:
81        $(M_K) libioipsl
82        $(M_K) testrest.x
83        $(RM) restfile.nc restfilebis.nc
84#-Q- sx8brodie  echo cd $(USER_DIR) > Job_testrest
85#-Q- sx8brodie  echo '\
86#-Q- sx6nec     echo cd $(USER_DIR) > Job_testrest
87#-Q- sx6nec     echo '\
88#-Q- sx8mercure echo cd $(USER_DIR) > Job_testrest
89#-Q- sx8mercure echo '\
90        ./testrest.x \
91#-Q- sx8brodie ' >> Job_testrest
92#-Q- sx8brodie  qsub -j o -S /usr/bin/ksh \
93#-Q- sx8brodie   -o $(USER_DIR)/Out_testrest Job_testrest
94#-Q- sx8brodie  echo job Job_testrest has been submitted
95#-Q- sx6nec ' >> Job_testrest
96#-Q- sx6nec     qsub -j o -S /usr/bin/ksh \
97#-Q- sx6nec      -o $(USER_DIR)/Out_testrest Job_testrest
98#-Q- sx6nec     echo job Job_testrest has been submitted
99#-Q- sx8mercure ' >> Job_testrest
100#-Q- sx8mercure qsub -j o -S /usr/bin/ksh \
101#-Q- sx8mercure  -o $(USER_DIR)/Out_testrest Job_testrest
102#-Q- sx8mercure echo job Job_testrest has been submitted
103
104        @echo ' '
105        @echo 'file restfile.nc should be created'
106        @echo 'to see it, type : ncdump -h restfile.nc'
107        @echo ' '
108        @echo 'file restfilebis.nc should be created'
109        @echo 'to see it, type : ncdump -h restfilebis.nc'
110        @echo ' '
111
112testrest.x: testrest.o
113        $(F_L) -o testrest.x testrest.o \
114               $(L_O) $(IOIPSL_LIB) $(NCDF_LIB)
115
116testopp:
117        $(M_K) libioipsl
118        $(M_K) testopp.x
119#-Q- sx8brodie  echo cd $(USER_DIR) > Job_testopp
120#-Q- sx8brodie  echo '\
121#-Q- sx6nec     echo cd $(USER_DIR) > Job_testopp
122#-Q- sx6nec     echo '\
123#-Q- sx8mercure echo cd $(USER_DIR) > Job_testopp
124#-Q- sx8mercure echo '\
125        ./testopp.x \
126#-Q- sx8brodie ' >> Job_testopp
127#-Q- sx8brodie  qsub -j o -S /usr/bin/ksh \
128#-Q- sx8brodie   -o $(USER_DIR)/Out_testopp Job_testopp
129#-Q- sx8brodie  echo job Job_testopp has been submitted
130#-Q- sx6nec ' >> Job_testopp
131#-Q- sx6nec     qsub -j o -S /usr/bin/ksh \
132#-Q- sx6nec      -o $(USER_DIR)/Out_testopp Job_testopp
133#-Q- sx6nec     echo job Job_testopp has been submitted
134#-Q- sx8mercure ' >> Job_testopp
135#-Q- sx8mercure qsub -j o -S /usr/bin/ksh \
136#-Q- sx8mercure  -o $(USER_DIR)/Out_testopp Job_testopp
137#-Q- sx8mercure echo job Job_testopp has been submitted
138
139testopp.x: testopp.o
140        $(F_L) -o testopp.x testopp.o \
141               $(L_O) $(IOIPSL_LIB) $(NCDF_LIB)
142
143testcalendar:
144        $(M_K) libioipsl
145        $(M_K) testcalendar.x
146#-Q- sx8brodie  echo cd $(USER_DIR) > Job_testcalendar
147#-Q- sx8brodie  echo '\
148#-Q- sx6nec     echo cd $(USER_DIR) > Job_testcalendar
149#-Q- sx6nec     echo '\
150#-Q- sx8mercure echo cd $(USER_DIR) > Job_testcalendar
151#-Q- sx8mercure echo '\
152        echo; \
153#-Q- sx8brodie ' >> Job_testcalendar
154#-Q- sx8brodie  echo '\
155#-Q- sx6nec ' >> Job_testcalendar
156#-Q- sx6nec     echo '\
157#-Q- sx8mercure ' >> Job_testcalendar
158#-Q- sx8mercure echo '\
159        ./testcalendar.x; \
160#-Q- sx8brodie ' >> Job_testcalendar
161#-Q- sx8brodie  echo '\
162#-Q- sx6nec ' >> Job_testcalendar
163#-Q- sx6nec     echo '\
164#-Q- sx8mercure ' >> Job_testcalendar
165#-Q- sx8mercure echo '\
166        echo; \
167#-Q- sx8brodie ' >> Job_testcalendar
168#-Q- sx8brodie  echo '\
169#-Q- sx6nec ' >> Job_testcalendar
170#-Q- sx6nec     echo '\
171#-Q- sx8mercure ' >> Job_testcalendar
172#-Q- sx8mercure echo '\
173        ./testcalendar.x noleap; \
174#-Q- sx8brodie ' >> Job_testcalendar
175#-Q- sx8brodie  echo '\
176#-Q- sx6nec ' >> Job_testcalendar
177#-Q- sx6nec     echo '\
178#-Q- sx8mercure ' >> Job_testcalendar
179#-Q- sx8mercure echo '\
180        echo; \
181#-Q- sx8brodie ' >> Job_testcalendar
182#-Q- sx8brodie  echo '\
183#-Q- sx6nec ' >> Job_testcalendar
184#-Q- sx6nec     echo '\
185#-Q- sx8mercure ' >> Job_testcalendar
186#-Q- sx8mercure echo '\
187        ./testcalendar.x 360d; \
188#-Q- sx8brodie ' >> Job_testcalendar
189#-Q- sx8brodie  qsub -j o -S /usr/bin/ksh \
190#-Q- sx8brodie   -o $(USER_DIR)/Out_testcalendar Job_testcalendar
191#-Q- sx8brodie  echo job Job_testcalendar has been submitted
192#-Q- sx6nec ' >> Job_testcalendar
193#-Q- sx6nec     qsub -j o -S /usr/bin/ksh \
194#-Q- sx6nec      -o $(USER_DIR)/Out_testcalendar Job_testcalendar
195#-Q- sx6nec     echo job Job_testcalendar has been submitted
196#-Q- sx8mercure ' >> Job_testcalendar
197#-Q- sx8mercure qsub -j o -S /usr/bin/ksh \
198#-Q- sx8mercure  -o $(USER_DIR)/Out_testcalendar Job_testcalendar
199#-Q- sx8mercure echo job Job_testcalendar has been submitted
200
201testcalendar.x: testcalendar.o
202        $(F_L) -o testcalendar.x testcalendar.o \
203               $(L_O) $(IOIPSL_LIB) $(NCDF_LIB)
204
205testflio:
206        $(M_K) libioipsl
207        $(M_K) testflio.x
208
209#-Q- sx8brodie  echo cd $(USER_DIR) > Job_testflio
210#-Q- sx8brodie  echo '\
211#-Q- sx6nec     echo cd $(USER_DIR) > Job_testflio
212#-Q- sx6nec     echo '\
213#-Q- sx8mercure echo cd $(USER_DIR) > Job_testflio
214#-Q- sx8mercure echo '\
215        ./testflio.x \
216#-Q- sx8brodie ' >> Job_testflio
217#-Q- sx8brodie  qsub -j o -S /usr/bin/ksh \
218#-Q- sx8brodie   -o $(USER_DIR)/Out_testflio Job_testflio
219#-Q- sx8brodie  echo job Job_testflio has been submitted
220#-Q- sx6nec ' >> Job_testflio
221#-Q- sx6nec     qsub -j o -S /usr/bin/ksh \
222#-Q- sx6nec      -o $(USER_DIR)/Out_testflio Job_testflio
223#-Q- sx6nec     echo job Job_testflio has been submitted
224#-Q- sx8mercure ' >> Job_testflio
225#-Q- sx8mercure qsub -j o -S /usr/bin/ksh \
226#-Q- sx8mercure  -o $(USER_DIR)/Out_testflio Job_testflio
227#-Q- sx8mercure echo job Job_testflio has been submitted
228
229        @echo ' '
230        @echo 'file testflio_0001.nc should be created'
231        @echo 'to see it, type : ncdump -h testflio_0001.nc'
232        @echo ' '
233
234testflio.x: testflio.o
235        $(F_L) -o testflio.x testflio.o \
236               $(L_O) $(IOIPSL_LIB) $(NCDF_LIB)
237
238testconfig:
239        $(M_K) libioipsl
240        $(M_K) testconfig.x
241#-Q- sx8brodie  echo cd $(USER_DIR) > Job_testconfig
242#-Q- sx8brodie  echo '\
243#-Q- sx6nec     echo cd $(USER_DIR) > Job_testconfig
244#-Q- sx6nec     echo '\
245#-Q- sx8mercure echo cd $(USER_DIR) > Job_testconfig
246#-Q- sx8mercure echo '\
247        ./testconfig.x \
248#-Q- sx8brodie ' >> Job_testconfig
249#-Q- sx8brodie  qsub -j o -S /usr/bin/ksh \
250#-Q- sx8brodie   -o $(USER_DIR)/Out_testconfig Job_testconfig
251#-Q- sx8brodie  echo job Job_testconfig has been submitted
252#-Q- sx6nec ' >> Job_testconfig
253#-Q- sx6nec     qsub -j o -S /usr/bin/ksh \
254#-Q- sx6nec      -o $(USER_DIR)/Out_testconfig Job_testconfig
255#-Q- sx6nec     echo job Job_testconfig has been submitted
256#-Q- sx8mercure ' >> Job_testconfig
257#-Q- sx8mercure qsub -j o -S /usr/bin/ksh \
258#-Q- sx8mercure  -o $(USER_DIR)/Out_testconfig Job_testconfig
259#-Q- sx8mercure echo job Job_testconfig has been submitted
260
261testconfig.x: testconfig.o
262        $(F_L) -o testconfig.x testconfig.o \
263               $(L_O) $(IOIPSL_LIB) $(NCDF_LIB)
264
265testconfig2:
266        $(M_K) libioipsl
267        $(M_K) testconfig2.x
268#-Q- sx8brodie  echo cd $(USER_DIR) > Job_testconfig2
269#-Q- sx8brodie  echo '\
270#-Q- sx6nec     echo cd $(USER_DIR) > Job_testconfig2
271#-Q- sx6nec     echo '\
272#-Q- sx8mercure echo cd $(USER_DIR) > Job_testconfig2
273#-Q- sx8mercure echo '\
274        ./testconfig2.x \
275#-Q- sx8brodie ' >> Job_testconfig2
276#-Q- sx8brodie  qsub -j o -S /usr/bin/ksh \
277#-Q- sx8brodie   -o $(USER_DIR)/Out_testconfig2 Job_testconfig2
278#-Q- sx8brodie  echo job Job_testconfig2 has been submitted
279#-Q- sx6nec ' >> Job_testconfig2
280#-Q- sx6nec     qsub -j o -S /usr/bin/ksh \
281#-Q- sx6nec      -o $(USER_DIR)/Out_testconfig2 Job_testconfig2
282#-Q- sx6nec     echo job Job_testconfig2 has been submitted
283#-Q- sx8mercure ' >> Job_testconfig2
284#-Q- sx8mercure qsub -j o -S /usr/bin/ksh \
285#-Q- sx8mercure  -o $(USER_DIR)/Out_testconfig2 Job_testconfig2
286#-Q- sx8mercure echo job Job_testconfig2 has been submitted
287
288testconfig2.x: testconfig2.o
289        $(F_L) -o testconfig2.x testconfig2.o \
290               $(L_O) $(IOIPSL_LIB) $(NCDF_LIB)
291
292config: libioipsl
293        (cd ../src; $(M_K) -f Makefile config)
294        $(BINDIR)/Fparser -main -name testconfig testconfig.f90
295        $(SCPDIR)/build_tkmenus
296        ./config.tk
297        $(RM) Config.*
298
299libioipsl:
300        (cd ../src; $(M_K) -f Makefile)
301
302clean:
303        $(RM) *.*~ Makefile~ core *.o *.nc Out_t* Job_t* *.x *_run.def
304
305testhist1.o: testhist1.f90
306        $(F_C) $(F_O) testhist1.f90
307
308testhist2.o: testhist2.f90
309        $(F_C) $(F_O) testhist2.f90
310
311testrest.o: testrest.f90
312        $(F_C) $(F_O) testrest.f90
313
314testopp.o: testopp.f90
315        $(F_C) $(F_O) testopp.f90
316
317testcalendar.o: testcalendar.f90
318        $(F_C) $(F_O) testcalendar.f90
319
320testflio.o: testflio.f90
321        $(F_C) $(F_O) testflio.f90
322
323testconfig.o: testconfig.f90
324        $(F_C) $(F_O) testconfig.f90
325
326testconfig2.o: testconfig2.f90
327        $(F_C) $(F_O) testconfig2.f90
328
Note: See TracBrowser for help on using the repository browser.