/[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.2 - (hide annotations) (download)
Sat Apr 7 23:21:41 2007 UTC (18 years, 3 months ago) by dimitri
Branch: MAIN
Changes since 1.1: +42 -41 lines
simplifying instructions as per Martin's suggestions

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     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 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 dimitri 1.2 cd MITgcm
30     mkdir build run
31     cd build
32     \rm *
33     \cp ../../MITgcm_contrib/high_res_cube/code-mods/* .
34     \cp ../utils/exch2/code-mods/s12t_16x32/* .
35 dimitri 1.1 \rm CPP_EEOPTIONS.h
36 dimitri 1.2 ../tools/genmake2
37     make depend
38     make -j
39     cd ../run
40 dimitri 1.1 \rm *
41 dimitri 1.2 \cp ../verification/tutorial_held_suarez_cs/input/grid* .
42     \cp ../verification/global_ocean.cs32x15/input/lev_*_cs_15k.bin .
43     \cp ../verification/global_ocean.cs32x15/input/bathy_Hmin50.bin .
44     \cp ../../MITgcm_contrib/high_res_cube/input/* .
45 dimitri 1.1 ../build/mitgcmuv >& output.txt
46    
47     comparison output is in:
48 dimitri 1.2 ../../MITgcm_contrib/high_res_cube/results/output.txt
49 dimitri 1.1
50     to use matlab to look at the output
51     matlab
52    
53     for fld={'SIuice','SIvice','SIheff','SIarea','oceQsw', ...
54     'surForcT','oceTAUX','oceTAUY','surForcS'}
55     tmp=permute(readbin([fld{1} '.0000000072.data'],[32,6,32]),[1 3 2]);
56     cx=[min(tmp(:)) max(tmp(:))]; clf, plot_cube, title(fld{1}), pause
57     end
58    
59     heff=permute(readbin(['SIheff.0000000072.data'],[32,6,32]),[1 3 2]);
60     mask=0*heff; mask(find(heff>.001))=1;
61     uice=mask.*permute(readbin(['SIuice.0000000072.data'],[32,6,32]),[1 3 2]);
62     vice=mask.*permute(readbin(['SIvice.0000000072.data'],[32,6,32]),[1 3 2]);
63     clf
64     subplot(221), mypcolor(uice(:,:,3)'); colorbar, title('uice, tile 3')
65     subplot(222), mypcolor(uice(:,:,6)'); colorbar, title('uice, tile 6')
66     subplot(223), mypcolor(vice(:,:,3)'); colorbar, title('vice, tile 3')
67     subplot(224), mypcolor(vice(:,:,6)'); colorbar, title('vice, tile 6')
68    
69 dimitri 1.2
70 dimitri 1.1 ##########################################################################
71     # 32*32*6*15, 17-tile, 1-cpu cube sphere experiment
72 dimitri 1.2 # needs fixing; does not work as of checkpoint58x_post
73     # see discussion on MITgcm-devel
74 dimitri 1.1
75     cd ../build
76     \rm *
77 dimitri 1.2 \cp ../../MITgcm_contrib/high_res_cube/code-mods/* .
78     \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     \cp ../../MITgcm_contrib/high_res_cube/input/* .
89 dimitri 1.1 ../build/mitgcmuv >& output.txt
90    
91 dimitri 1.2
92 dimitri 1.1 ##########################################################################
93     # 32*32*6*15, 2-cpu cube sphere on the altices with ifort
94    
95 dimitri 1.2 cd MITgcm
96     mkdir build run
97     cd build
98     \rm *
99     \cp ../../MITgcm_contrib/high_res_cube/code-mods/* .
100     \cp ../utils/exch2/code-mods/s12t_16x32/* .
101 dimitri 1.1 \cp SIZE.h_mpi SIZE.h
102     ../../../tools/genmake2 -mods=../code -of ../../../tools/build_options/linux_ia64_ifort+mpi_altix_nas
103     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

  ViewVC Help
Powered by ViewVC 1.1.22