1 |
Instructions for setting up a cube-sphere integration with sea-ice. |
2 |
Date last tested: December 6, 2003. |
3 |
|
4 |
setenv CVSROOT :pserver:cvsanon@mitgcm.org:/u/u0/gcmpack |
5 |
cvs login ( CVS password: cvsanon ) |
6 |
|
7 |
cvs co MITgcm_contrib/high_res_cube/README_ice |
8 |
cvs co MITgcm_contrib/high_res_cube/code-mods |
9 |
cvs co MITgcm_contrib/high_res_cube/matlab-grid-converter |
10 |
cvs co MITgcm_contrib/high_res_cube/input |
11 |
cvs co MITgcm_contrib/high_res_cube/results |
12 |
|
13 |
cvs co -r checkpoint52d_pre MITgcm_code |
14 |
cvs co -r checkpoint52d_pre MITgcm/verification/global_ocean.cs32x15 |
15 |
|
16 |
cd MITgcm/verification/global_ocean.cs32x15/code |
17 |
cp ../../../../MITgcm_contrib/high_res_cube/code-mods/* . |
18 |
cp ../../../../MITgcm_contrib/high_res_cube/code-mods/s12t_16x32/* . |
19 |
\rm mdsio_readfield.F |
20 |
|
21 |
cd .. |
22 |
mkdir build |
23 |
cd build |
24 |
../code/genmake2 -mods=../code |
25 |
make depend |
26 |
make |
27 |
|
28 |
cd .. |
29 |
mkdir run |
30 |
cd run |
31 |
cp ../inp_thsice/* . |
32 |
cp ../input/* . |
33 |
cp ../../../../MITgcm_contrib/high_res_cube/matlab-grid-converter/tile00* . |
34 |
cp ../../../../MITgcm_contrib/high_res_cube/input/* . |
35 |
../build/mitgcmuv >& output.txt |
36 |
|
37 |
comparison output is in: |
38 |
../../../../MITgcm_contrib/high_res_cube/results/output.txt |
39 |
|
40 |
|
41 |
to use matlab to look at the output |
42 |
matlab |
43 |
for fld={'Eta','VICE','UICE','HEFF','AREA','Qsw','Qnet','FV','FU','EmPmR'} |
44 |
tmp=permute(readbin([fld{1} '.0000000020.data'],[32,6,32]),[1 3 2]); |
45 |
cx=[min(tmp(:)) max(tmp(:))]; clf, plot_cube, title(fld{1}), pause |
46 |
end |