/[MITgcm]/MITgcm_contrib/high_res_cube/README.cs32
ViewVC logotype

Annotation of /MITgcm_contrib/high_res_cube/README.cs32

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.7 - (hide annotations) (download)
Mon May 25 15:25:08 2009 UTC (16 years, 1 month ago) by dimitri
Branch: MAIN
Changes since 1.6: +22 -21 lines
updating for consistency with new exch2 routines

1 dimitri 1.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 dimitri 1.7 cvs co -P MITgcm_contrib/high_res_cube/README.cs32
9 dimitri 1.6 cvs co -P MITgcm_contrib/high_res_cube/code-mods
10 dimitri 1.7 cvs co -P MITgcm_contrib/high_res_cube/input
11     cvs co -P MITgcm_contrib/high_res_cube/results
12     cvs co -P MITgcm_code
13     cvs co -P MITgcm/verification/global_ocean.cs32x15/input
14     cvs co -P MITgcm/verification/tutorial_held_suarez_cs/input
15 dimitri 1.1
16     ##########################################################################
17     # 32*32*6*15, 1-cpu cube sphere
18    
19 dimitri 1.2 cd MITgcm
20     mkdir build run
21     cd build
22     \rm *
23     \cp ../../MITgcm_contrib/high_res_cube/code-mods/* .
24 dimitri 1.1 \rm CPP_EEOPTIONS.h
25 dimitri 1.2 ../tools/genmake2
26     make depend
27     make -j
28     cd ../run
29 dimitri 1.1 \rm *
30 dimitri 1.2 \cp ../verification/tutorial_held_suarez_cs/input/grid* .
31     \cp ../verification/global_ocean.cs32x15/input/lev_*_cs_15k.bin .
32     \cp ../verification/global_ocean.cs32x15/input/bathy_Hmin50.bin .
33     \cp ../../MITgcm_contrib/high_res_cube/input/* .
34 dimitri 1.1 ../build/mitgcmuv >& output.txt
35    
36 dimitri 1.3 emacs output.txt ../../MITgcm_contrib/high_res_cube/results/output.txt
37 dimitri 1.1
38     to use matlab to look at the output
39     matlab
40    
41     for fld={'SIuice','SIvice','SIheff','SIarea','oceQsw', ...
42     'surForcT','oceTAUX','oceTAUY','surForcS'}
43     tmp=permute(readbin([fld{1} '.0000000072.data'],[32,6,32]),[1 3 2]);
44     cx=[min(tmp(:)) max(tmp(:))]; clf, plot_cube, title(fld{1}), pause
45     end
46    
47     heff=permute(readbin(['SIheff.0000000072.data'],[32,6,32]),[1 3 2]);
48     mask=0*heff; mask(find(heff>.001))=1;
49     uice=mask.*permute(readbin(['SIuice.0000000072.data'],[32,6,32]),[1 3 2]);
50     vice=mask.*permute(readbin(['SIvice.0000000072.data'],[32,6,32]),[1 3 2]);
51     clf
52     subplot(221), mypcolor(uice(:,:,3)'); colorbar, title('uice, tile 3')
53     subplot(222), mypcolor(uice(:,:,6)'); colorbar, title('uice, tile 6')
54     subplot(223), mypcolor(vice(:,:,3)'); colorbar, title('vice, tile 3')
55     subplot(224), mypcolor(vice(:,:,6)'); colorbar, title('vice, tile 6')
56    
57 dimitri 1.2
58 dimitri 1.1 ##########################################################################
59 dimitri 1.7 # 32*32*6*15, 176-tile, 1-cpu cube sphere experiment
60     # example that has 16 blank tiles
61 dimitri 1.1
62     cd ../build
63     \rm *
64 dimitri 1.2 \cp ../../MITgcm_contrib/high_res_cube/code-mods/* .
65 dimitri 1.7 \cp ../utils/exch2/code-mods/s176t_8x4/SIZE.h .
66     ex - SIZE.h >> /dev/null <<EOF
67     /OLx =
68     c
69     & OLx = 5,
70     .
71     /OLy =
72     c
73     & OLy = 5,
74     .
75     w
76     q
77     EOF
78 dimitri 1.2 \cp ../verification/global_ocean.cs32x15/code_alt/code.176t_8x4/* .
79     \rm CPP_EEOPTIONS.h
80     ../tools/genmake2
81 dimitri 1.1 make depend
82 dimitri 1.2 make -j
83     cd ../run
84     \rm *
85     \cp ../verification/tutorial_held_suarez_cs/input/grid* .
86     \cp ../verification/global_ocean.cs32x15/input/lev_*_cs_15k.bin .
87     \cp ../verification/global_ocean.cs32x15/input/bathy_Hmin50.bin .
88 dimitri 1.7 \cp ../utils/exch2/code-mods/data.exch2.16_blk data.exch2
89 dimitri 1.2 \cp ../../MITgcm_contrib/high_res_cube/input/* .
90 dimitri 1.1 ../build/mitgcmuv >& output.txt
91    
92 dimitri 1.2
93 dimitri 1.1 ##########################################################################
94 dimitri 1.4 # 32*32*6*15, 2-cpu cube sphere on the NAS altices with ifort
95 dimitri 1.1
96 dimitri 1.2 cd MITgcm
97     mkdir build run
98     cd build
99     \rm *
100     \cp ../../MITgcm_contrib/high_res_cube/code-mods/* .
101 dimitri 1.5 \mv SIZE.h_mpi SIZE.h
102 dimitri 1.3 ../tools/genmake2 -of ../../MITgcm_contrib/high_res_cube/code-mods/linux_ia64_ifort+mpi_altix_nas
103 dimitri 1.1 make depend
104     make -j
105 dimitri 1.2 cd ../run
106     \rm *
107     \cp ../verification/tutorial_held_suarez_cs/input/grid* .
108     \cp ../verification/global_ocean.cs32x15/input/lev_*_cs_15k.bin .
109     \cp ../verification/global_ocean.cs32x15/input/bathy_Hmin50.bin .
110     \cp ../../MITgcm_contrib/high_res_cube/input/* .
111 dimitri 1.1 mpirun -np 2 ../build/mitgcmuv
112 dimitri 1.4
113    
114     ##########################################################################
115     # 32*32*6*15, 2-cpu cube sphere on the JPL altices with ifort
116    
117     cd MITgcm
118     mkdir build run
119     cd build
120     \rm *
121     \cp ../../MITgcm_contrib/high_res_cube/code-mods/* .
122 dimitri 1.5 \mv SIZE.h_mpi SIZE.h
123 dimitri 1.4 ../tools/genmake2 -of ../tools/build_options/linux_ia64_ifort+mpi_altix_jpl
124     make depend
125     make -j
126     cd ../run
127     \rm *
128     \cp ../verification/tutorial_held_suarez_cs/input/grid* .
129     \cp ../verification/global_ocean.cs32x15/input/lev_*_cs_15k.bin .
130     \cp ../verification/global_ocean.cs32x15/input/bathy_Hmin50.bin .
131     \cp ../../MITgcm_contrib/high_res_cube/input/* .
132     mpirun -np 2 ../build/mitgcmuv

  ViewVC Help
Powered by ViewVC 1.1.22