1 |
Instructions for setting up a cube-sphere integration with sea-ice. |
daInstructions for setting up a cube-sphere integration with sea-ice. |
2 |
Date last tested: July 9, 2004. |
Date last updated: February 17, 2005 |
3 |
Code and input used for integrating cube9. |
Code and input used for integrating cube22. |
4 |
|
|
5 |
|
|
6 |
########################################################################## |
########################################################################## |
42 |
to use matlab to look at the output |
to use matlab to look at the output |
43 |
matlab |
matlab |
44 |
|
|
45 |
for fld={'Eta','VICE','UICE','HEFF','AREA','Qsw','Qnet','FV','FU','EmPmR'} |
for fld={'VICEtave','UICEtave','HEFFtave','AREAtave','QSWtave', ... |
46 |
|
'QNETtave','FVtave','FUtave','EmPmRtave'} |
47 |
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]); |
48 |
cx=[min(tmp(:)) max(tmp(:))]; clf, plot_cube, title(fld{1}), pause |
cx=[min(tmp(:)) max(tmp(:))]; clf, plot_cube, title(fld{1}), pause |
49 |
end |
end |
50 |
|
|
51 |
heff=permute(readbin(['HEFF.0000000020.data'],[32,6,32]),[1 3 2]); |
heff=permute(readbin(['HEFFtave.0000000020.data'],[32,6,32]),[1 3 2]); |
52 |
mask=0*heff; mask(find(heff>.001))=1; |
mask=0*heff; mask(find(heff>.001))=1; |
53 |
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]); |
54 |
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]); |
55 |
clf |
clf |
56 |
subplot(221), mypcolor(uice(:,:,3)'), colorbar, title('uice, tile 3') |
subplot(221), mypcolor(uice(:,:,3)'); colorbar, title('uice, tile 3') |
57 |
subplot(222), mypcolor(uice(:,:,6)'), colorbar, title('uice, tile 6') |
subplot(222), mypcolor(uice(:,:,6)'); colorbar, title('uice, tile 6') |
58 |
subplot(223), mypcolor(vice(:,:,3)'), colorbar, title('vice, tile 3') |
subplot(223), mypcolor(vice(:,:,3)'); colorbar, title('vice, tile 3') |
59 |
subplot(224), mypcolor(vice(:,:,6)'), colorbar, title('vice, tile 6') |
subplot(224), mypcolor(vice(:,:,6)'); colorbar, title('vice, tile 6') |
60 |
|
|
61 |
|
|
62 |
########################################################################## |
########################################################################## |
79 |
\cp ../../../../MITgcm_contrib/high_res_cube/input/* . |
\cp ../../../../MITgcm_contrib/high_res_cube/input/* . |
80 |
../build/mitgcmuv >& output.txt |
../build/mitgcmuv >& output.txt |
81 |
|
|
|
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') |
|
|
|
|
82 |
|
|
83 |
########################################################################## |
########################################################################## |
84 |
########################################################################## |
########################################################################## |
91 |
|
|
92 |
cd ../build |
cd ../build |
93 |
\rm * |
\rm * |
94 |
../../../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 |
95 |
make depend |
make depend |
96 |
make -j |
make -j |
97 |
|
|
132 |
|
|
133 |
########################################################################## |
########################################################################## |
134 |
########################################################################## |
########################################################################## |
135 |
# 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 |
136 |
# requires input files in sudirectories run_template and ncep_rgau |
# requires input files in sudirectories run_template and ncep_rgau |
137 |
# these can be obained from lou:/u/menemenl/cube |
# these can be obained from lou:/u/menemenl/cube |
138 |
|
|
146 |
\rm * |
\rm * |
147 |
../../../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 |
148 |
make depend |
make depend |
149 |
make -j 4 |
make -j |
150 |
|
|
151 |
cd .. |
cd .. |
152 |
mkdir run |
mkdir run |
156 |
\cp ../../../../MITgcm_contrib/high_res_cube/input/* . |
\cp ../../../../MITgcm_contrib/high_res_cube/input/* . |
157 |
ln -sf ../../../../run_template/* . |
ln -sf ../../../../run_template/* . |
158 |
\rm pickup* |
\rm pickup* |
159 |
ln -sf ../../../../run_template/pickup.0000316440.cube20 pickup.0000000216.data |
ln -sf ../../../../run_template/pickup.0000316440.cube19 pickup.0000000216.data |
160 |
ln -sf ../../../../run_template/pickup_seaice.0000316440.cube20 pickup_seaice.0000000216.data |
ln -sf ../../../../run_template/pickup_seaice.0000316440.cube19 pickup_seaice.0000000216.data |
161 |
\cp ../build/mitgcmuv . |
\cp ../build/mitgcmuv . |
162 |
qsub job_altix92 |
qsub job_altix92 |
163 |
|
|
164 |
|
|
165 |
|
|
166 |
|
|
167 |
|
|
168 |
|
|
169 |
|
|
170 |
|
|
171 |
|
|
172 |
|
|
173 |
|
|