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: July 9, 2004. |
Date last updated: June 10, 2006 |
3 |
Code and input used for integrating cube9. |
216-CPU code and input used for integrating cube37. |
4 |
|
|
5 |
|
|
6 |
########################################################################## |
########################################################################## |
13 |
cvs co MITgcm_contrib/high_res_cube/results |
cvs co MITgcm_contrib/high_res_cube/results |
14 |
cvs co MITgcm_code |
cvs co MITgcm_code |
15 |
cvs co MITgcm/verification/global_ocean.cs32x15 |
cvs co MITgcm/verification/global_ocean.cs32x15 |
|
cvs co MITgcm/verification/testreport |
|
16 |
|
|
17 |
|
|
18 |
########################################################################## |
########################################################################## |
41 |
to use matlab to look at the output |
to use matlab to look at the output |
42 |
matlab |
matlab |
43 |
|
|
44 |
for fld={'Eta','VICE','UICE','HEFF','AREA','Qsw','Qnet','FV','FU','EmPmR'} |
for fld={'VICEtave','UICEtave','HEFFtave','AREAtave','QSWtave', ... |
45 |
|
'QNETtave','FVtave','FUtave','EmPmRtave'} |
46 |
tmp=permute(readbin([fld{1} '.0000000020.data'],[32,6,32]),[1 3 2]); |
tmp=permute(readbin([fld{1} '.0000000020.data'],[32,6,32]),[1 3 2]); |
47 |
cx=[min(tmp(:)) max(tmp(:))]; clf, plot_cube, title(fld{1}), pause |
cx=[min(tmp(:)) max(tmp(:))]; clf, plot_cube, title(fld{1}), pause |
48 |
end |
end |
49 |
|
|
50 |
heff=permute(readbin(['HEFF.0000000020.data'],[32,6,32]),[1 3 2]); |
heff=permute(readbin(['HEFFtave.0000000020.data'],[32,6,32]),[1 3 2]); |
51 |
mask=0*heff; mask(find(heff>.001))=1; |
mask=0*heff; mask(find(heff>.001))=1; |
52 |
uice=mask.*permute(readbin(['UICE.0000000020.data'],[32,6,32]),[1 3 2]); |
uice=mask.*permute(readbin(['UICEtave.0000000020.data'],[32,6,32]),[1 3 2]); |
53 |
vice=mask.*permute(readbin(['VICE.0000000020.data'],[32,6,32]),[1 3 2]); |
vice=mask.*permute(readbin(['VICEtave.0000000020.data'],[32,6,32]),[1 3 2]); |
54 |
clf |
clf |
55 |
subplot(221), mypcolor(uice(:,:,3)'), colorbar, title('uice, tile 3') |
subplot(221), mypcolor(uice(:,:,3)'); colorbar, title('uice, tile 3') |
56 |
subplot(222), mypcolor(uice(:,:,6)'), colorbar, title('uice, tile 6') |
subplot(222), mypcolor(uice(:,:,6)'); colorbar, title('uice, tile 6') |
57 |
subplot(223), mypcolor(vice(:,:,3)'), colorbar, title('vice, tile 3') |
subplot(223), mypcolor(vice(:,:,3)'); colorbar, title('vice, tile 3') |
58 |
subplot(224), mypcolor(vice(:,:,6)'), colorbar, title('vice, tile 6') |
subplot(224), mypcolor(vice(:,:,6)'); colorbar, title('vice, tile 6') |
59 |
|
|
60 |
|
|
61 |
########################################################################## |
########################################################################## |
78 |
\cp ../../../../MITgcm_contrib/high_res_cube/input/* . |
\cp ../../../../MITgcm_contrib/high_res_cube/input/* . |
79 |
../build/mitgcmuv >& output.txt |
../build/mitgcmuv >& output.txt |
80 |
|
|
|
comparison output is in: |
|
|
../../../../MITgcm_contrib/high_res_cube/results/output.txt |
|
|
|
|
|
to use matlab to look at the output |
|
|
matlab |
|
|
|
|
|
for fld={'Eta','VICE','UICE','HEFF','AREA','Qsw','Qnet','FV','FU','EmPmR'} |
|
|
tmp=permute(readbin([fld{1} '.0000000020.data'],[32,6,32]),[1 3 2]); |
|
|
cx=[min(tmp(:)) max(tmp(:))]; clf, plot_cube, title(fld{1}), pause |
|
|
end |
|
|
|
|
|
heff=permute(readbin(['HEFF.0000000020.data'],[32,6,32]),[1 3 2]); |
|
|
mask=0*heff; mask(find(heff>.001))=1; |
|
|
uice=mask.*permute(readbin(['UICE.0000000020.data'],[32,6,32]),[1 3 2]); |
|
|
vice=mask.*permute(readbin(['VICE.0000000020.data'],[32,6,32]),[1 3 2]); |
|
|
clf |
|
|
subplot(221), mypcolor(uice(:,:,3)'), colorbar, title('uice, tile 3') |
|
|
subplot(222), mypcolor(uice(:,:,6)'), colorbar, title('uice, tile 6') |
|
|
subplot(223), mypcolor(vice(:,:,3)'), colorbar, title('vice, tile 3') |
|
|
subplot(224), mypcolor(vice(:,:,6)'), colorbar, title('vice, tile 6') |
|
|
|
|
81 |
|
|
82 |
########################################################################## |
########################################################################## |
83 |
########################################################################## |
########################################################################## |
84 |
# 32*32*6*15, 2-cpu cube sphere on the altices with efc |
# 32*32*6*15, 2-cpu cube sphere on the altices with ifort |
85 |
|
|
86 |
cd MITgcm/verification/global_ocean.cs32x15/code |
cd MITgcm/verification/global_ocean.cs32x15/code |
87 |
\cp ../../../../MITgcm_contrib/high_res_cube/code-mods/* . |
\cp ../../../../MITgcm_contrib/high_res_cube/code-mods/* . |
90 |
|
|
91 |
cd ../build |
cd ../build |
92 |
\rm * |
\rm * |
93 |
../../../tools/genmake2 -mods=../code -of ../../../tools/build_options/linux_ia64_efc+mpi_altix |
../../../tools/genmake2 -mods=../code -of ../../../tools/build_options/linux_ia64_ifort+mpi_altix_nas |
94 |
make depend |
make depend |
95 |
make -j |
make -j |
96 |
|
|
131 |
|
|
132 |
########################################################################## |
########################################################################## |
133 |
########################################################################## |
########################################################################## |
134 |
# 510*510*6*50, 216-cpu cube sphere on altix with ifort |
# 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 |
# requires input files in sudirectories run_template and ncep_rgau |
136 |
# these can be obained from lou:/u/menemenl/cube |
# these can be obained from lou:/u/menemenl/cube |
137 |
|
|
145 |
\rm * |
\rm * |
146 |
../../../tools/genmake2 -mods=../code -of ../../../tools/build_options/linux_ia64_ifort+mpi_altix_nas |
../../../tools/genmake2 -mods=../code -of ../../../tools/build_options/linux_ia64_ifort+mpi_altix_nas |
147 |
make depend |
make depend |
148 |
make -j 4 |
make -j |
149 |
|
|
150 |
cd .. |
cd .. |
151 |
mkdir run |
mkdir run |
154 |
\cp ../input/* . |
\cp ../input/* . |
155 |
\cp ../../../../MITgcm_contrib/high_res_cube/input/* . |
\cp ../../../../MITgcm_contrib/high_res_cube/input/* . |
156 |
ln -sf ../../../../run_template/* . |
ln -sf ../../../../run_template/* . |
157 |
ln -sf pickup.0000000216.cube20 pickup.0000000216.data |
\rm pickup* data.pkg data.seaice data.exf_clim data.exf data |
158 |
ln -sf pickup_seaice.0000000216.cube20 pickup_seaice.0000000216.data |
\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 . |
\cp ../build/mitgcmuv . |
162 |
qsub job_altix92 |
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 |
|
|
436 |
\cp ../input/* . |
\cp ../input/* . |
437 |
\cp ../../../../MITgcm_contrib/high_res_cube/input/* . |
\cp ../../../../MITgcm_contrib/high_res_cube/input/* . |
438 |
qsub job_orion |
qsub job_orion |
|
|
|
|
|
|
|
########################################################################## |
|
|
########################################################################## |
|
|
# matlab script for generating pChkptFreq |
|
|
|
|
|
nTimeSteps=26352; |
|
|
for niter0=216:26352:(26352*12) |
|
|
pChkptFreq=(niter0+nTimeSteps)*1200; |
|
|
day=pChkptFreq/24/60/60; |
|
|
disp(['niter0=' int2str(niter0) ',day=' int2str(day) ', ' ... |
|
|
datestr(datenum(1992,1,1)+day) ', pChkptFreq=' int2str(pChkptFreq)]) |
|
|
end |
|
|
|
|
|
niter0 = 216 , day = 369 , 04-Jan-1993, pChkptFreq = 31881600 |
|
|
niter0 = 26568 , day = 735 , 05-Jan-1994, pChkptFreq = 63504000 |
|
|
niter0 = 52920 , day = 1101, 06-Jan-1995, pChkptFreq = 95126400 |
|
|
niter0 = 79272 , day = 1467, 07-Jan-1996, pChkptFreq = 126748800 |
|
|
niter0 = 105624, day = 1833, 07-Jan-1997, pChkptFreq = 158371200 |
|
|
niter0 = 131976, day = 2199, 08-Jan-1998, pChkptFreq = 189993600 |
|
|
niter0 = 158328, day = 2565, 09-Jan-1999, pChkptFreq = 221616000 |
|
|
niter0 = 184680, day = 2931, 10-Jan-2000, pChkptFreq = 253238400 |
|
|
niter0 = 211032, day = 3297, 10-Jan-2001, pChkptFreq = 284860800 |
|
|
niter0 = 237384, day = 3663, 11-Jan-2002, pChkptFreq = 316483200 |
|
|
niter0 = 263736, day = 4029, 12-Jan-2003, pChkptFreq = 348105600 |
|
|
niter0 = 290088, day = 4395, 13-Jan-2004, pChkptFreq = 379728000 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#!/bin/csh |
|
|
\cp data.pkg_hr data.pkg |
|
|
\cp data.seaice_hr data.seaice |
|
|
\cp data.exf_clim_hr data.exf_clim |
|
|
|
|
|
\cp data_hr92 data |
|
|
./modpickup |
|
|
\cp data.exf_hr92 data.exf |
|
|
/opt/sgi/mpt/1.11-85/bin/mpirun.real -v -a a2k c20 216 runon 221-436 mitgcmuv |
|
|
mkdir out.1992 |
|
|
\mv STDOUT.0000 *.data pickup*.meta out.1992 |
|
|
\cp data* out.1992 |
|
|
\rm STD* *.meta |
|
|
|
|