1 |
Instructions for running the "beaufort" 40x40x50 configuration |
2 |
face=6; ix=101:300; jx=290:449; kx=1:50; |
3 |
|
4 |
1. Get code, input, and README files from CVS server |
5 |
cvs -d :pserver:cvsanon:cvsanon@mitgcm.org:/u/gcmpack \ |
6 |
co -d beaufort MITgcm_contrib/MPMice/beaufort |
7 |
cd beaufort |
8 |
cvs -d :pserver:cvsanon:cvsanon@mitgcm.org:/u/gcmpack co -P MITgcm_code |
9 |
|
10 |
2. Obtain copies of following directories and put them in beaufort |
11 |
wget -r -nH --cut-dirs=2 ftp://ecco2.jpl.nasa.gov/data1/beaufort/run_template |
12 |
wget -r -nH --cut-dirs=4 ftp://ecco2.jpl.nasa.gov/data1/data/atmos/blend_forcing/cube78_forcing |
13 |
(Note the forcing files in cube78_forcing span many years. |
14 |
To save time, you only need to download the years of interest, |
15 |
*92 for example below, plus the runoff-360x180x12.bin file) |
16 |
|
17 |
3. Get the ice code, PM2 (this item needs to be updated) |
18 |
Obtain directories PM2/F95 and PM2/config from ...?? |
19 |
call the directory containting PM2, ICE_DIR, |
20 |
in my case ICE_DIR=/dm5/bep/sulsky/seaice on pollux |
21 |
ICE_DIR=/workg/bep/sulsky/seaice on gemini |
22 |
|
23 |
cp -r /workg/bep/sulsky/seaice ICE_DIR |
24 |
cd ICE_DIR/PM2 |
25 |
make |
26 |
|
27 |
ONCE ONLY: (only need to redo if geometry changes) |
28 |
cd MITgcm/ice |
29 |
mpirun -np 1 ICE_DIR/PM2-Pre |
30 |
|
31 |
The PM2/config/hosts files for gemini and pollux assume petsc is installed in |
32 |
PETSCDIR = /dm5/bep/sulsky/Packages/petsc-2.3.3-p8 on pollux |
33 |
PETSCDIR = /workg/bep/sulsky/Packages/petsc-2.3.3-p8 on gemini |
34 |
If petsc is installed elsewhere, then change the directory specification. |
35 |
(The configure command to build petsc on gemini or pollux is |
36 |
./config/configure.py --with-debug=1 --with-fc=/opt/intel/fc/9.1.051/bin/ifort |
37 |
--with-f90=/opt/intel/fc/9.1.051/bin/ifort --with-mpi-dir=/opt/mpich/ch-p4 |
38 |
--with-blas-lapack-dir=/opt/intel/mkl/9.1.023/lib/64 for debuggable code and |
39 |
|
40 |
./config/configure.py --with-debug=0 --with-fc=/opt/intel/fc/9.1.051/bin/ifort |
41 |
--with-f90=/opt/intel/fc/9.1.051/bin/ifort --with-mpi-dir=/opt/mpich/ch-p4 |
42 |
--with-blas-lapack-dir=/opt/intel/mkl/9.1.023/lib/64 for optimized code.) |
43 |
|
44 |
Input files go in MITgcm/ice (pm2input, pm2geometry) After compile step, run |
45 |
PM2-Pre once to generate pm2_grid.nc pm2_part.nc with initial geometry. |
46 |
|
47 |
============================================= |
48 |
Running uncoupled, serial code |
49 |
|
50 |
4. Compile code: |
51 |
cd MITgcm |
52 |
mkdir bin exe |
53 |
cd bin |
54 |
../tools/genmake2 -mo ../../code |
55 |
make depend |
56 |
make -j |
57 |
|
58 |
5. Model execution: |
59 |
cd ../exe |
60 |
ln -sf ../../run_template/* . |
61 |
cp ../../input/* . |
62 |
cp ../bin/mitgcmuv . |
63 |
./mitgcmuv >& output.txt & |
64 |
|
65 |
============================================= |
66 |
Running uncoupled MPI code |
67 |
|
68 |
4. Compile code: |
69 |
cd MITgcm |
70 |
mkdir bin exe |
71 |
cd bin |
72 |
\cp ../../code/SIZE.h_2 SIZE.h |
73 |
\cp ../../code/CPP_EEOPTIONS.h_UNCOUPLED CPP_EEOPTIONS.h |
74 |
../tools/genmake2 -mpi -mo ../../code |
75 |
make depend |
76 |
make -j |
77 |
|
78 |
5. Model execution: |
79 |
cd ../exe |
80 |
ln -sf ../../run_template/* . |
81 |
cp ../../input/* . |
82 |
cp ../bin/mitgcmuv . |
83 |
mpiexec -np 2 ./mitgcmuv & |
84 |
|
85 |
============================================= |
86 |
Running uncoupled MPI code on spiral |
87 |
|
88 |
4. Compile code: |
89 |
cd MITgcm |
90 |
mkdir bin exe |
91 |
cd bin |
92 |
\cp ../../code/SIZE.h_2 SIZE.h |
93 |
\cp ../../code/CPP_EEOPTIONS.h_UNCOUPLED CPP_EEOPTIONS.h |
94 |
../tools/genmake2 -mpi -mo ../../code -of ../../code/linux_gfortran_spiral |
95 |
make depend |
96 |
make -j 8 |
97 |
|
98 |
5. Model execution: |
99 |
cd ../exe |
100 |
ln -sf ../../run_template/* . |
101 |
cp ../../input/* . |
102 |
cp ../bin/mitgcmuv . |
103 |
mpiexec.mpich -np 2 ./mitgcmuv & |
104 |
|
105 |
============================================= |
106 |
Running MITgcm and MPMice |
107 |
|
108 |
4. Compile code: |
109 |
cd MITgcm |
110 |
mkdir bin |
111 |
cd bin |
112 |
\rm * |
113 |
\cp ../../code/* . |
114 |
\mv SIZE.h_2 SIZE.h |
115 |
\mv CPP_EEOPTIONS.h_CPL CPP_EEOPTIONS.h |
116 |
../tools/genmake2 -of ../../code/linux_gfortran_spiral -mpi |
117 |
make depend |
118 |
make -j |
119 |
|
120 |
cd .. |
121 |
mkdir ice |
122 |
cp ../../beaufort_020212/MITgcm/ice/* . |
123 |
cp /homes/hantran/MPM_Han/PM2/bin/PM2 . |
124 |
|
125 |
5. Model execution: |
126 |
\rm out err a.out |
127 |
mkdir ocean |
128 |
cd ocean |
129 |
\rm * |
130 |
\cp ../../run_template/* . |
131 |
\cp ../../input/* . |
132 |
cd .. |
133 |
\cp bin/mitgcmuv . |
134 |
mpiexec -np 2 mitgcmuv : -np 1 PM2 > a.out & |