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