7 |
########################################################################## |
########################################################################## |
8 |
# getting the code from anonymous CVS server |
# getting the code from anonymous CVS server |
9 |
|
|
10 |
setenv CVSROOT :pserver:cvsanon@mitgcm.org:/u/u0/gcmpack |
cvs co MITgcm_contrib/high_res_cube/README_ice |
11 |
cvs login ( CVS password: cvsanon ) |
cvs co MITgcm_contrib/high_res_cube/code-mods |
12 |
cvs co -r hrcube5 MITgcm_contrib/high_res_cube/README_ice |
cvs co MITgcm_contrib/high_res_cube/input |
13 |
cvs co -r hrcube5 MITgcm_contrib/high_res_cube/code-mods |
cvs co MITgcm_contrib/high_res_cube/results |
14 |
cvs co -r hrcube5 MITgcm_contrib/high_res_cube/input |
cvs co MITgcm_contrib/edge_problem |
15 |
cvs co -r hrcube5 MITgcm_contrib/high_res_cube/results |
cvs co MITgcm_code |
16 |
cvs co -r hrcube5 MITgcm_code |
cvs co MITgcm/verification/global_ocean.cs32x15 |
|
cvs co -r hrcube5 MITgcm/verification/global_ocean.cs32x15 |
|
17 |
|
|
18 |
|
|
19 |
########################################################################## |
########################################################################## |
23 |
cd MITgcm/verification/global_ocean.cs32x15/code |
cd MITgcm/verification/global_ocean.cs32x15/code |
24 |
\cp ../../../../MITgcm_contrib/high_res_cube/code-mods/* . |
\cp ../../../../MITgcm_contrib/high_res_cube/code-mods/* . |
25 |
\cp ../../../utils/exch2/code-mods/s12t_16x32/* . |
\cp ../../../utils/exch2/code-mods/s12t_16x32/* . |
|
|
|
26 |
cd ../build |
cd ../build |
27 |
|
\rm * |
28 |
../../../tools/genmake2 -mods=../code |
../../../tools/genmake2 -mods=../code |
29 |
make depend |
make depend |
30 |
make |
make |
31 |
|
cd .. |
32 |
|
mkdir run |
33 |
|
cd run |
34 |
|
\rm * |
35 |
|
\cp ../input/* . |
36 |
|
\cp ../../../../MITgcm_contrib/high_res_cube/input/* . |
37 |
|
../build/mitgcmuv >& output.txt |
38 |
|
|
39 |
|
comparison output is in: |
40 |
|
../../../../MITgcm_contrib/high_res_cube/results/output.txt |
41 |
|
|
42 |
|
to use matlab to look at the output |
43 |
|
matlab |
44 |
|
|
45 |
|
for fld={'Eta','VICE','UICE','HEFF','AREA','Qsw','Qnet','FV','FU','EmPmR'} |
46 |
|
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 |
48 |
|
end |
49 |
|
|
50 |
|
heff=permute(readbin(['HEFF.0000000020.data'],[32,6,32]),[1 3 2]); |
51 |
|
mask=0*heff; mask(find(heff>.001))=1; |
52 |
|
uice=mask.*permute(readbin(['UICE.0000000020.data'],[32,6,32]),[1 3 2]); |
53 |
|
vice=mask.*permute(readbin(['VICE.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 .. |
cd .. |
74 |
mkdir run |
mkdir run |
75 |
cd run |
cd run |
76 |
|
\rm * |
77 |
\cp ../input/* . |
\cp ../input/* . |
78 |
\cp ../../../../MITgcm_contrib/high_res_cube/input/* . |
\cp ../../../../MITgcm_contrib/high_res_cube/input/* . |
79 |
../build/mitgcmuv >& output.txt |
../build/mitgcmuv >& output.txt |