1 |
Instructions for setting up a cube-sphere integration with sea-ice. |
Instructions for setting up a cube-sphere integration with sea-ice. |
2 |
Date last tested: November 21, 2003. |
Date last updated: June 10, 2006 |
3 |
|
216-CPU code and input used for integrating cube37. |
4 |
|
|
5 |
setenv CVSROOT :pserver:cvsanon@mitgcm.org:/u/u0/gcmpack |
|
6 |
cvs login ( CVS password: cvsanon ) |
########################################################################## |
7 |
|
########################################################################## |
8 |
|
# getting the code from anonymous CVS server |
9 |
|
|
10 |
cvs co MITgcm_contrib/high_res_cube/README_ice |
cvs co MITgcm_contrib/high_res_cube/README_ice |
11 |
cvs co MITgcm_contrib/high_res_cube/code-mods |
cvs co MITgcm_contrib/high_res_cube/code-mods |
|
cvs co MITgcm_contrib/high_res_cube/matlab-grid-converter |
|
12 |
cvs co MITgcm_contrib/high_res_cube/input |
cvs co MITgcm_contrib/high_res_cube/input |
13 |
cvs co MITgcm_contrib/high_res_cube/results |
cvs co MITgcm_contrib/high_res_cube/results |
14 |
|
cvs co MITgcm_code |
15 |
|
cvs co MITgcm/verification/global_ocean.cs32x15 |
16 |
|
|
|
cvs co -r checkpoint52a_post MITgcm_code |
|
|
cvs co -r checkpoint52a_post MITgcm/verification/global_ocean.cs32x15 |
|
17 |
|
|
18 |
cd MITgcm/verification/global_ocean.cs32x15/code |
########################################################################## |
19 |
cp ../../../../MITgcm_contrib/high_res_cube/code-mods/* . |
########################################################################## |
20 |
cp ../../../../MITgcm_contrib/high_res_cube/code-mods/s12t_16x32/* . |
# 32*32*6*15, 1-cpu cube sphere |
|
\rm mdsio_readfield.F |
|
21 |
|
|
22 |
cd .. |
cd MITgcm/verification/global_ocean.cs32x15/code |
23 |
mkdir build |
\cp ../../../../MITgcm_contrib/high_res_cube/code-mods/* . |
24 |
cd build |
\cp ../../../utils/exch2/code-mods/s12t_16x32/* . |
25 |
../code/genmake2 -mods=../code |
cd ../build |
26 |
|
\rm * |
27 |
|
../../../tools/genmake2 -mods=../code |
28 |
make depend |
make depend |
29 |
make |
make |
|
|
|
30 |
cd .. |
cd .. |
31 |
mkdir run |
mkdir run |
32 |
cd run |
cd run |
33 |
cp ../input/* . |
\rm * |
34 |
cp ../../../../MITgcm_contrib/high_res_cube/matlab-grid-converter/tile00* . |
\cp ../input/* . |
35 |
cp ../../../../MITgcm_contrib/high_res_cube/input/* . |
\cp ../../../../MITgcm_contrib/high_res_cube/input/* . |
36 |
../build/mitgcmuv >& output.txt |
../build/mitgcmuv >& output.txt |
37 |
|
|
38 |
comparison output is in: |
comparison output is in: |
39 |
../../../../MITgcm_contrib/high_res_cube/results/output.txt |
../../../../MITgcm_contrib/high_res_cube/results/output.txt |
40 |
|
|
|
|
|
41 |
to use matlab to look at the output |
to use matlab to look at the output |
42 |
matlab |
matlab |
43 |
eta=permute(readbin('Eta.0000072020.data',[32,6,32]),[1 3 2]); |
|
44 |
cx=[-1 1]; clf |
for fld={'VICEtave','UICEtave','HEFFtave','AREAtave','QSWtave', ... |
45 |
subplot(3,4, 9);imagesc(flipud(eta(:,:,1)'));caxis(cx);colorbar |
'QNETtave','FVtave','FUtave','EmPmRtave'} |
46 |
subplot(3,4,10);imagesc(flipud(eta(:,:,2)'));caxis(cx);colorbar |
tmp=permute(readbin([fld{1} '.0000000020.data'],[32,6,32]),[1 3 2]); |
47 |
subplot(3,4, 6);imagesc(flipud(eta(:,:,3)'));caxis(cx);colorbar |
cx=[min(tmp(:)) max(tmp(:))]; clf, plot_cube, title(fld{1}), pause |
48 |
subplot(3,4, 7);imagesc(flipud(eta(:,:,4)'));caxis(cx);colorbar |
end |
49 |
subplot(3,4, 3);imagesc(flipud(eta(:,:,5)'));caxis(cx);colorbar |
|
50 |
subplot(3,4, 4);imagesc(flipud(eta(:,:,6)'));caxis(cx);colorbar |
heff=permute(readbin(['HEFFtave.0000000020.data'],[32,6,32]),[1 3 2]); |
51 |
|
mask=0*heff; mask(find(heff>.001))=1; |
52 |
|
uice=mask.*permute(readbin(['UICEtave.0000000020.data'],[32,6,32]),[1 3 2]); |
53 |
|
vice=mask.*permute(readbin(['VICEtave.0000000020.data'],[32,6,32]),[1 3 2]); |
54 |
|
clf |
55 |
|
subplot(221), mypcolor(uice(:,:,3)'); colorbar, title('uice, tile 3') |
56 |
|
subplot(222), mypcolor(uice(:,:,6)'); colorbar, title('uice, tile 6') |
57 |
|
subplot(223), mypcolor(vice(:,:,3)'); colorbar, title('vice, tile 3') |
58 |
|
subplot(224), mypcolor(vice(:,:,6)'); colorbar, title('vice, tile 6') |
59 |
|
|
60 |
|
|
61 |
|
########################################################################## |
62 |
|
########################################################################## |
63 |
|
# 32*32*6*15, 17-tile, 1-cpu cube sphere experiment |
64 |
|
|
65 |
|
cd MITgcm/verification/global_ocean.cs32x15/code |
66 |
|
\cp ../../../../MITgcm_contrib/high_res_cube/code-mods/* . |
67 |
|
\cp ../code_alt/code.176t_8x4/* . |
68 |
|
cd ../build |
69 |
|
\rm * |
70 |
|
../../../tools/genmake2 -mods=../code |
71 |
|
make depend |
72 |
|
make |
73 |
|
cd .. |
74 |
|
mkdir run |
75 |
|
cd run |
76 |
|
\rm * |
77 |
|
\cp ../input/* . |
78 |
|
\cp ../../../../MITgcm_contrib/high_res_cube/input/* . |
79 |
|
../build/mitgcmuv >& output.txt |
80 |
|
|
81 |
|
|
82 |
|
########################################################################## |
83 |
|
########################################################################## |
84 |
|
# 32*32*6*15, 2-cpu cube sphere on the altices with ifort |
85 |
|
|
86 |
|
cd MITgcm/verification/global_ocean.cs32x15/code |
87 |
|
\cp ../../../../MITgcm_contrib/high_res_cube/code-mods/* . |
88 |
|
\cp ../../../utils/exch2/code-mods/s12t_16x32/* . |
89 |
|
\cp SIZE.h_mpi SIZE.h |
90 |
|
|
91 |
|
cd ../build |
92 |
|
\rm * |
93 |
|
../../../tools/genmake2 -mods=../code -of ../../../tools/build_options/linux_ia64_ifort+mpi_altix_nas |
94 |
|
make depend |
95 |
|
make -j |
96 |
|
|
97 |
|
cd .. |
98 |
|
mkdir run |
99 |
|
cd run |
100 |
|
\rm * |
101 |
|
\cp ../input/* . |
102 |
|
\cp ../../../../MITgcm_contrib/high_res_cube/input/* . |
103 |
|
mpirun -np 2 ../build/mitgcmuv |
104 |
|
|
105 |
|
|
106 |
|
########################################################################## |
107 |
|
########################################################################## |
108 |
|
# 510*510*6*50, 54-tile, 54-cpu cube sphere on the altices with efc |
109 |
|
# starting with pickup file from end of 1992 |
110 |
|
# requires input files in sudirectories run_template and ncep_rgau |
111 |
|
|
112 |
|
cd MITgcm/verification/global_ocean.cs32x15/code |
113 |
|
\cp ../../../../MITgcm_contrib/high_res_cube/code-mods/* . |
114 |
|
\cp ../../../../MITgcm_contrib/high_res_cube/code-mods/s54t_170x170/* . |
115 |
|
\cp packages.conf_hr packages.conf |
116 |
|
|
117 |
|
cd ../build |
118 |
|
\rm * |
119 |
|
../../../tools/genmake2 -mods=../code -of ../../../tools/build_options/linux_ia64_efc+mpi_altix |
120 |
|
make depend |
121 |
|
make -j |
122 |
|
|
123 |
|
cd .. |
124 |
|
mkdir run |
125 |
|
cd run |
126 |
|
\rm * |
127 |
|
\cp ../input/* . |
128 |
|
\cp ../../../../MITgcm_contrib/high_res_cube/input/* . |
129 |
|
qsub job_altix92_54t |
130 |
|
|
131 |
|
|
132 |
|
########################################################################## |
133 |
|
########################################################################## |
134 |
|
# 510*510*6*50, 216-cpu cube sphere on altix with ifort and pkg/diagnostics |
135 |
|
# requires input files in sudirectories run_template and ncep_rgau |
136 |
|
# these can be obained from lou:/u/menemenl/cube |
137 |
|
|
138 |
|
cd MITgcm/verification/global_ocean.cs32x15/code |
139 |
|
\cp ../../../../MITgcm_contrib/high_res_cube/code-mods/* . |
140 |
|
\cp ../../../../MITgcm_contrib/high_res_cube/code-mods/s216t_85x85/* . |
141 |
|
\cp SIZE.h_216 SIZE.h |
142 |
|
\cp packages.conf_hr packages.conf |
143 |
|
|
144 |
|
cd ../build |
145 |
|
\rm * |
146 |
|
../../../tools/genmake2 -mods=../code -of ../../../tools/build_options/linux_ia64_ifort+mpi_altix_nas |
147 |
|
make depend |
148 |
|
make -j |
149 |
|
|
150 |
|
cd .. |
151 |
|
mkdir run |
152 |
|
cd run |
153 |
|
\rm * |
154 |
|
\cp ../input/* . |
155 |
|
\cp ../../../../MITgcm_contrib/high_res_cube/input/* . |
156 |
|
ln -sf ../../../../run_template/* . |
157 |
|
\rm pickup* data.pkg data.seaice data.exf_clim data.exf data |
158 |
|
\rm *192_94* *cs32* *.m lev* tren* job_c* job_altix150 job_altix92_54t |
159 |
|
ln -sf ../../../../run_template/pickup.0000000216.cube27 pickup.0000000216 |
160 |
|
ln -sf ../../../../run_template/pickup_seaice.0000000216.cube27 pickup_seaice.0000000216 |
161 |
|
\cp ../build/mitgcmuv . |
162 |
|
qsub job_altix |
163 |
|
|
164 |
|
|
165 |
|
########################################################################## |
166 |
|
########################################################################## |
167 |
|
# 510*510*6*50, 1500-tile, 150-cpu, excludes land |
168 |
|
# uses s1500t_17x51 configuration |
169 |
|
|
170 |
|
cd MITgcm/verification/global_ocean.cs32x15/code |
171 |
|
\cp ../../../../MITgcm_contrib/high_res_cube/code-mods/* . |
172 |
|
\cp ../../../../MITgcm_contrib/high_res_cube/code-mods/s1500t_17x51/* . |
173 |
|
\cp SIZE.h_150 SIZE.h |
174 |
|
\cp packages.conf_hr packages.conf |
175 |
|
|
176 |
|
cd ../build |
177 |
|
\rm * |
178 |
|
../../../tools/genmake2 -mods=../code -of ../../../tools/build_options/linux_ia64_ifort+mpi_altix_nas |
179 |
|
make depend |
180 |
|
make -j |
181 |
|
|
182 |
|
cd .. |
183 |
|
mkdir run |
184 |
|
cd run |
185 |
|
\rm * |
186 |
|
\cp ../input/* . |
187 |
|
\cp ../../../../MITgcm_contrib/high_res_cube/input/* . |
188 |
|
ln -sf ../../../../run_template/* . |
189 |
|
\rm pickup* |
190 |
|
ln -sf ../../../../run_template/pickup.0000316440.cube19 pickup.0000000216 |
191 |
|
ln -sf ../../../../run_template/pickup_seaice.0000316440.cube19 pickup_seaice.0000000216 |
192 |
|
\cp ../build/mitgcmuv mitgcmuv150 |
193 |
|
qsub job_altix150 |
194 |
|
|
195 |
|
|
196 |
|
|
197 |
|
|
198 |
|
########################################################################## |
199 |
|
########################################################################## |
200 |
|
# 510*510*6*50, 1500-tile, 375-cpu, excludes land |
201 |
|
# uses s1500t_17x51 configuration |
202 |
|
# example for running on c17-c20 using arrayd |
203 |
|
|
204 |
|
cd MITgcm/verification/global_ocean.cs32x15/code |
205 |
|
\cp ../../../../MITgcm_contrib/high_res_cube/code-mods/* . |
206 |
|
\cp ../../../../MITgcm_contrib/high_res_cube/code-mods/s1500t_17x51/* . |
207 |
|
\cp SIZE.h_375 SIZE.h |
208 |
|
\cp packages.conf_hr packages.conf |
209 |
|
|
210 |
|
cd ../build |
211 |
|
\rm * |
212 |
|
../../../tools/genmake2 -mods=../code -of ../../../tools/build_options/linux_ia64_ifort+mpi_altix_nas |
213 |
|
make depend |
214 |
|
make -j |
215 |
|
|
216 |
|
cd .. |
217 |
|
mkdir run |
218 |
|
cd run |
219 |
|
\rm * |
220 |
|
\cp ../input/* . |
221 |
|
\cp ../../../../MITgcm_contrib/high_res_cube/input/* . |
222 |
|
ln -sf ../../../../run_template/* . |
223 |
|
\rm pickup* |
224 |
|
ln -sf ../../../../run_template/pickup.0000316440.cube19 pickup.0000000216 |
225 |
|
ln -sf ../../../../run_template/pickup_seaice.0000316440.cube19 pickup_seaice.0000000216 |
226 |
|
\cp ../build/mitgcmuv . |
227 |
|
job_c20_375cpu < /dev/null >&! output.run & |
228 |
|
|
229 |
|
|
230 |
|
|
231 |
|
|
232 |
|
|
233 |
|
|
234 |
|
|
235 |
|
|
236 |
|
|
237 |
|
|
238 |
|
|
239 |
|
|
240 |
|
########################################################################## |
241 |
|
########################################################################## |
242 |
|
# 510*510*6*50, 1500-tile, 375-cpu, excludes land |
243 |
|
# uses s1500t_17x51 configuration |
244 |
|
# example for running on c17-c20 using arrayd |
245 |
|
|
246 |
|
cd MITgcm/verification/global_ocean.cs32x15/code |
247 |
|
\cp ../../../../MITgcm_contrib/high_res_cube/code-mods/* . |
248 |
|
\cp ../../../../MITgcm_contrib/high_res_cube/code-mods/s1500t_17x51/* . |
249 |
|
\cp SIZE.h_375 SIZE.h |
250 |
|
\cp packages.conf_hr packages.conf |
251 |
|
|
252 |
|
cd ../build |
253 |
|
\rm * |
254 |
|
../../../tools/genmake2 -mods=../code -of ../../../tools/build_options/linux_ia64_ifort+mpi_altix_nas |
255 |
|
make depend |
256 |
|
make -j |
257 |
|
|
258 |
|
cd .. |
259 |
|
mkdir run |
260 |
|
cd run |
261 |
|
\rm * |
262 |
|
\cp ../input/* . |
263 |
|
\cp ../../../../MITgcm_contrib/high_res_cube/input/* . |
264 |
|
ln -sf ../../../../run_template/* . |
265 |
|
\rm pickup* |
266 |
|
ln -sf ../../../../run_template/pickup.0000316440.cube19 pickup.0000000216 |
267 |
|
ln -sf ../../../../run_template/pickup_seaice.0000316440.cube19 pickup_seaice.0000000216 |
268 |
|
\cp ../build/mitgcmuv . |
269 |
|
job_c20_375cpu < /dev/null >&! output.run & |
270 |
|
|
271 |
|
|
272 |
|
########################################################################## |
273 |
|
########################################################################## |
274 |
|
# 510*510*6*50, 1500-tile, 500-cpu, excludes land |
275 |
|
# uses s1500t_17x51 configuration |
276 |
|
# example for running on c17-c20 using arrayd |
277 |
|
|
278 |
|
cd MITgcm/verification/global_ocean.cs32x15/code |
279 |
|
\cp ../../../../MITgcm_contrib/high_res_cube/code-mods/* . |
280 |
|
\cp ../../../../MITgcm_contrib/high_res_cube/code-mods/s1500t_17x51/* . |
281 |
|
\cp SIZE.h_500 SIZE.h |
282 |
|
\cp packages.conf_hr packages.conf |
283 |
|
|
284 |
|
cd ../build |
285 |
|
\rm * |
286 |
|
../../../tools/genmake2 -mods=../code -of ../../../tools/build_options/linux_ia64_ifort+mpi_altix_nas |
287 |
|
make depend |
288 |
|
make -j |
289 |
|
|
290 |
|
cd .. |
291 |
|
mkdir run |
292 |
|
cd run |
293 |
|
\rm * |
294 |
|
\cp ../input/* . |
295 |
|
\cp ../../../../MITgcm_contrib/high_res_cube/input/* . |
296 |
|
ln -sf ../../../../run_template/* . |
297 |
|
\rm pickup* |
298 |
|
ln -sf ../../../../run_template/pickup.0000316440.cube19 pickup.0000000216 |
299 |
|
ln -sf ../../../../run_template/pickup_seaice.0000316440.cube19 pickup_seaice.0000000216 |
300 |
|
\cp ../build/mitgcmuv . |
301 |
|
job_c19_500cpu < /dev/null >&! output.run & |
302 |
|
|
303 |
|
|
304 |
|
|
305 |
|
|
306 |
|
|
307 |
|
########################################################################## |
308 |
|
########################################################################## |
309 |
|
# 510*510*6*50, 216-cpu cube sphere on cosmos |
310 |
|
|
311 |
|
cd MITgcm/verification/global_ocean.cs32x15/code |
312 |
|
\cp ../../../../MITgcm_contrib/high_res_cube/code-mods/* . |
313 |
|
\cp ../../../../MITgcm_contrib/high_res_cube/code-mods/s216t_85x85/* . |
314 |
|
\cp SIZE.h_216 SIZE.h |
315 |
|
\cp packages.conf_hr packages.conf |
316 |
|
|
317 |
|
module unload latest_intel80 |
318 |
|
module unload mpich-gm-intel80 |
319 |
|
module load latest_intel81 |
320 |
|
module load mpich-gm-intel81 |
321 |
|
|
322 |
|
cd ../build |
323 |
|
\rm * |
324 |
|
../../../tools/genmake2 -mods=../code -of ../../../tools/build_options/linux_ia32_ifort+mpi_cosmos |
325 |
|
make depend |
326 |
|
make -j |
327 |
|
|
328 |
|
cd .. |
329 |
|
mkdir run |
330 |
|
cd run |
331 |
|
\rm * |
332 |
|
\cp ../input/* . |
333 |
|
\cp ../../../../MITgcm_contrib/high_res_cube/input/* . |
334 |
|
ln -sf ../../../../run_template/* . |
335 |
|
\rm pickup* |
336 |
|
ln -sf ../../../../run_template/pickup.0000316440.cube19 pickup.0000000216 |
337 |
|
ln -sf ../../../../run_template/pickup_seaice.0000316440.cube19 pickup_seaice.0000000216 |
338 |
|
\cp ../build/mitgcmuv . |
339 |
|
bsub < job_cosmos |
340 |
|
|
341 |
|
|
342 |
|
|
343 |
|
|
344 |
|
|
345 |
|
|
346 |
|
|
347 |
|
|
348 |
|
|
349 |
|
|
350 |
|
|
351 |
|
|
352 |
|
|
353 |
|
|
354 |
|
|
355 |
|
|
356 |
|
|
357 |
|
|
358 |
|
|
359 |
|
|
360 |
|
########################################################################## |
361 |
|
########################################################################## |
362 |
|
# 510*510*6*50, 216-tile, 54-cpu cube sphere on the altices with efc |
363 |
|
# requires input files in sudirectories run_template and ncep_rgau |
364 |
|
# presently residing under orion:/tmp1/dmenem/cube |
365 |
|
|
366 |
|
cd MITgcm/verification/global_ocean.cs32x15/code |
367 |
|
\cp ../../../../MITgcm_contrib/high_res_cube/code-mods/* . |
368 |
|
\cp ../../../../MITgcm_contrib/high_res_cube/code-mods/s216t_85x85/* . |
369 |
|
\cp SIZE.h_54 SIZE.h |
370 |
|
\cp packages.conf_hr packages.conf |
371 |
|
|
372 |
|
cd ../build |
373 |
|
\rm * |
374 |
|
../../../tools/genmake2 -mods=../code -of ../../../tools/build_options/linux_ia64_efc+mpi_altix |
375 |
|
make depend |
376 |
|
make -j |
377 |
|
|
378 |
|
cd .. |
379 |
|
mkdir run |
380 |
|
cd run |
381 |
|
\rm * |
382 |
|
\cp ../input/* . |
383 |
|
\cp ../../../../MITgcm_contrib/high_res_cube/input/* . |
384 |
|
qsub job_orion |
385 |
|
|
386 |
|
|
387 |
|
########################################################################## |
388 |
|
########################################################################## |
389 |
|
# 510*510*6*50, 205-tile, 41-cpu cube sphere on the altices with efc |
390 |
|
# requires input files in sudirectories run_template and ncep_rgau |
391 |
|
# presently residing under orion:/tmp1/dmenem/cube |
392 |
|
|
393 |
|
cd MITgcm/verification/global_ocean.cs32x15/code |
394 |
|
\cp ../../../../MITgcm_contrib/high_res_cube/code-mods/* . |
395 |
|
\cp ../../../../MITgcm_contrib/high_res_cube/code-mods/s205t_85x85/* . |
396 |
|
\cp SIZE.h_41 SIZE.h |
397 |
|
\cp packages.conf_hr packages.conf |
398 |
|
|
399 |
|
cd ../build |
400 |
|
\rm * |
401 |
|
../../../tools/genmake2 -mods=../code -of ../../../tools/build_options/linux_ia64_efc+mpi_altix |
402 |
|
make depend |
403 |
|
make -j |
404 |
|
|
405 |
|
cd .. |
406 |
|
mkdir run |
407 |
|
cd run |
408 |
|
\rm * |
409 |
|
\cp ../input/* . |
410 |
|
\cp ../../../../MITgcm_contrib/high_res_cube/input/* . |
411 |
|
qsub job_orion41 |
412 |
|
|
413 |
|
|
414 |
|
########################################################################## |
415 |
|
########################################################################## |
416 |
|
# 510*510*6*50, 1500-tile, 50-cpu cube sphere on the altices with efc |
417 |
|
# requires input files in sudirectories run_template and ncep_rgau |
418 |
|
# presently residing under orion:/tmp1/dmenem/cube |
419 |
|
|
420 |
|
cd MITgcm/verification/global_ocean.cs32x15/code |
421 |
|
\cp ../../../../MITgcm_contrib/high_res_cube/code-mods/* . |
422 |
|
\cp ../../../../MITgcm_contrib/high_res_cube/code-mods/s1500t_17x51/* . |
423 |
|
\cp SIZE.h_50 SIZE.h |
424 |
|
\cp packages.conf_hr packages.conf |
425 |
|
|
426 |
|
cd ../build |
427 |
|
\rm * |
428 |
|
../../../tools/genmake2 -mods=../code -of ../../../tools/build_options/linux_ia64_efc+mpi_altix |
429 |
|
make depend |
430 |
|
make -j |
431 |
|
|
432 |
|
cd .. |
433 |
|
mkdir run |
434 |
|
cd run |
435 |
|
\rm * |
436 |
|
\cp ../input/* . |
437 |
|
\cp ../../../../MITgcm_contrib/high_res_cube/input/* . |
438 |
|
qsub job_orion |