1 |
jmc |
1.1 |
To run on beagle.darwinproject.mit.edu : |
2 |
|
|
|
3 |
|
|
#-- where executables have been built: |
4 |
|
|
# (see file 'utils/notes_bld' on how to build) |
5 |
|
|
BLD_DIR=~jmc/mitgcm/MITgcm/verification/nesting |
6 |
|
|
|
7 |
|
|
#-- where to run: |
8 |
|
|
RUN_DIR=/scratch/jmc/nesting |
9 |
|
|
(mkdir $RUN_DIR) |
10 |
|
|
|
11 |
|
|
#==== set-up: ==== |
12 |
|
|
Note: 1) driver is still using hard-coded absolute path |
13 |
|
|
(to /home/sannino/NESTING/ , subdir: PARENT/ & CHILD/ ) |
14 |
|
|
to read parent and chilf grid files for parent <--> child interpolation |
15 |
|
|
2) forcing is over simplified to minimise Nb/size of input files. |
16 |
|
|
|
17 |
|
|
cd $RUN_DIR |
18 |
|
|
|
19 |
|
|
cvs co -P -d input MITgcm_contrib/nesting_sannino/input |
20 |
|
|
cvs co -P -d params MITgcm_contrib/nesting_sannino/params |
21 |
|
|
cvs co -P -d utils MITgcm_contrib/nesting_sannino/utils |
22 |
|
|
|
23 |
|
|
( mkdir run_driv run_med run_gib ) |
24 |
|
|
|
25 |
|
|
cd run_driv |
26 |
|
|
ln -s $BLD_DIR/bld_driver/mitgcmuv . |
27 |
|
|
cd .. |
28 |
|
|
|
29 |
|
|
cd run_med |
30 |
|
|
ln -s $BLD_DIR/bld_parent/mitgcmuv . |
31 |
|
|
ln -s ../input/med/* . |
32 |
|
|
ln -s ../params/med/* . |
33 |
|
|
cd .. |
34 |
|
|
|
35 |
|
|
cd run_gib |
36 |
|
|
ln -s $BLD_DIR/bld_child/mitgcmuv . |
37 |
|
|
ln -s ../input/gib/* . |
38 |
|
|
ln -s ../params/gib/* . |
39 |
|
|
cd .. |
40 |
|
|
|
41 |
|
|
#==== running: ==== |
42 |
|
|
#-- on beagle: |
43 |
|
|
> qrsh -pe mpich_mx 64 |
44 |
|
|
|
45 |
|
|
then do "qstat" to get the job number: JOB_IB |
46 |
|
|
|
47 |
|
|
#-- on compute node: |
48 |
|
|
> module load mitgcm |
49 |
|
|
#- get the file which contains the list of nodes: |
50 |
|
|
> ls -l /tmp/$JOB_ID.1.darwin/machines |
51 |
|
|
|
52 |
|
|
> cd $RUN_DIR |
53 |
|
|
|
54 |
|
|
#- to make "pgfile": |
55 |
|
|
> utils/mk_pgfile.sh /tmp/$JOB_ID.1.darwin/machines |
56 |
|
|
|
57 |
|
|
#- to run: |
58 |
|
|
> mpirun -pg pgfile -np 64 $RUN_DIR/run_driv/mitgcmuv >& std_outp |
59 |
|
|
|
60 |
|
|
# Note: Until now, this command will not finish since the driver does not know |
61 |
|
|
# many iterations to do. Needs to kill (or Ctrl C) the mpirun process |
62 |
|
|
# when parent and child are done. |
63 |
|
|
|
64 |
|
|
#- to save all the output in new dir "res_new" |
65 |
|
|
> utils/move_nest_outp res_new |