1 |
Instructions for setting up a cube-sphere integration |
2 |
with sea-ice on the cs32 grid. Is meant to be used as |
3 |
a preliminary sanity check for the cs510 configuration. |
4 |
|
5 |
########################################################################## |
6 |
# getting the code from anonymous CVS server |
7 |
|
8 |
bash or sh shell: |
9 |
$ export CVSROOT=':pserver:cvsanon@mitgcm.org:/u/gcmpack' |
10 |
$ cvs login |
11 |
( enter the CVS password: "cvsanon" ) |
12 |
|
13 |
tcsh or csh shell: |
14 |
$ setenv CVSROOT ':pserver:cvsanon@mitgcm.org:/u/gcmpack' |
15 |
$ cvs login |
16 |
( enter the CVS password: "cvsanon" ) |
17 |
|
18 |
cvs co MITgcm_contrib/high_res_cube/README.cs32 |
19 |
cvs co -P MITgcm_contrib/high_res_cube/code-mods |
20 |
cvs co MITgcm_contrib/high_res_cube/input |
21 |
cvs co MITgcm_contrib/high_res_cube/results |
22 |
cvs co MITgcm_code |
23 |
cvs co MITgcm/verification/global_ocean.cs32x15 |
24 |
cvs co MITgcm/verification/tutorial_held_suarez_cs/input |
25 |
|
26 |
########################################################################## |
27 |
# 32*32*6*15, 1-cpu cube sphere |
28 |
|
29 |
cd MITgcm |
30 |
mkdir build run |
31 |
cd build |
32 |
\rm * |
33 |
\cp ../../MITgcm_contrib/high_res_cube/code-mods/* . |
34 |
\rm CPP_EEOPTIONS.h |
35 |
../tools/genmake2 |
36 |
make depend |
37 |
make -j |
38 |
cd ../run |
39 |
\rm * |
40 |
\cp ../verification/tutorial_held_suarez_cs/input/grid* . |
41 |
\cp ../verification/global_ocean.cs32x15/input/lev_*_cs_15k.bin . |
42 |
\cp ../verification/global_ocean.cs32x15/input/bathy_Hmin50.bin . |
43 |
\cp ../../MITgcm_contrib/high_res_cube/input/* . |
44 |
../build/mitgcmuv >& output.txt |
45 |
|
46 |
emacs output.txt ../../MITgcm_contrib/high_res_cube/results/output.txt |
47 |
|
48 |
to use matlab to look at the output |
49 |
matlab |
50 |
|
51 |
for fld={'SIuice','SIvice','SIheff','SIarea','oceQsw', ... |
52 |
'surForcT','oceTAUX','oceTAUY','surForcS'} |
53 |
tmp=permute(readbin([fld{1} '.0000000072.data'],[32,6,32]),[1 3 2]); |
54 |
cx=[min(tmp(:)) max(tmp(:))]; clf, plot_cube, title(fld{1}), pause |
55 |
end |
56 |
|
57 |
heff=permute(readbin(['SIheff.0000000072.data'],[32,6,32]),[1 3 2]); |
58 |
mask=0*heff; mask(find(heff>.001))=1; |
59 |
uice=mask.*permute(readbin(['SIuice.0000000072.data'],[32,6,32]),[1 3 2]); |
60 |
vice=mask.*permute(readbin(['SIvice.0000000072.data'],[32,6,32]),[1 3 2]); |
61 |
clf |
62 |
subplot(221), mypcolor(uice(:,:,3)'); colorbar, title('uice, tile 3') |
63 |
subplot(222), mypcolor(uice(:,:,6)'); colorbar, title('uice, tile 6') |
64 |
subplot(223), mypcolor(vice(:,:,3)'); colorbar, title('vice, tile 3') |
65 |
subplot(224), mypcolor(vice(:,:,6)'); colorbar, title('vice, tile 6') |
66 |
|
67 |
|
68 |
########################################################################## |
69 |
# 32*32*6*15, 17-tile, 1-cpu cube sphere experiment |
70 |
# needs fixing; does not work as of checkpoint58x_post |
71 |
# see discussion on MITgcm-devel |
72 |
|
73 |
cd ../build |
74 |
\rm * |
75 |
\cp ../../MITgcm_contrib/high_res_cube/code-mods/* . |
76 |
\cp ../verification/global_ocean.cs32x15/code_alt/code.176t_8x4/* . |
77 |
\rm CPP_EEOPTIONS.h |
78 |
../tools/genmake2 |
79 |
make depend |
80 |
make -j |
81 |
cd ../run |
82 |
\rm * |
83 |
\cp ../verification/tutorial_held_suarez_cs/input/grid* . |
84 |
\cp ../verification/global_ocean.cs32x15/input/lev_*_cs_15k.bin . |
85 |
\cp ../verification/global_ocean.cs32x15/input/bathy_Hmin50.bin . |
86 |
\cp ../../MITgcm_contrib/high_res_cube/input/* . |
87 |
../build/mitgcmuv >& output.txt |
88 |
|
89 |
|
90 |
########################################################################## |
91 |
# 32*32*6*15, 2-cpu cube sphere on the NAS altices with ifort |
92 |
|
93 |
cd MITgcm |
94 |
mkdir build run |
95 |
cd build |
96 |
\rm * |
97 |
\cp ../../MITgcm_contrib/high_res_cube/code-mods/* . |
98 |
\cp ../utils/exch2/code-mods/s12t_16x32/* . |
99 |
\mv SIZE.h_mpi SIZE.h |
100 |
../tools/genmake2 -of ../../MITgcm_contrib/high_res_cube/code-mods/linux_ia64_ifort+mpi_altix_nas |
101 |
make depend |
102 |
make -j |
103 |
cd ../run |
104 |
\rm * |
105 |
\cp ../verification/tutorial_held_suarez_cs/input/grid* . |
106 |
\cp ../verification/global_ocean.cs32x15/input/lev_*_cs_15k.bin . |
107 |
\cp ../verification/global_ocean.cs32x15/input/bathy_Hmin50.bin . |
108 |
\cp ../../MITgcm_contrib/high_res_cube/input/* . |
109 |
mpirun -np 2 ../build/mitgcmuv |
110 |
|
111 |
|
112 |
########################################################################## |
113 |
# 32*32*6*15, 2-cpu cube sphere on the JPL altices with ifort |
114 |
|
115 |
cd MITgcm |
116 |
mkdir build run |
117 |
cd build |
118 |
\rm * |
119 |
\cp ../../MITgcm_contrib/high_res_cube/code-mods/* . |
120 |
\cp ../utils/exch2/code-mods/s12t_16x32/* . |
121 |
\mv SIZE.h_mpi SIZE.h |
122 |
../tools/genmake2 -of ../tools/build_options/linux_ia64_ifort+mpi_altix_jpl |
123 |
make depend |
124 |
make -j |
125 |
cd ../run |
126 |
\rm * |
127 |
\cp ../verification/tutorial_held_suarez_cs/input/grid* . |
128 |
\cp ../verification/global_ocean.cs32x15/input/lev_*_cs_15k.bin . |
129 |
\cp ../verification/global_ocean.cs32x15/input/bathy_Hmin50.bin . |
130 |
\cp ../../MITgcm_contrib/high_res_cube/input/* . |
131 |
mpirun -np 2 ../build/mitgcmuv |