1 |
gforget |
1.1 |
#!/bin/csh -f |
2 |
|
|
# |
3 |
|
|
#to setup the experiments (cs32 and llc90 core run) you want to follow these steps : |
4 |
|
|
# |
5 |
|
|
#1) from MITgcm/verification, get global_oce_cs32 and |
6 |
|
|
# global_oce_llc90 using cvs checkout, as |
7 |
|
|
# cvs co -d global_oce_cs32 MITgcm_contrib/gael/verification/global_oce_cs32 |
8 |
|
|
# cvs co -d global_oce_llc90 MITgcm_contrib/gael/verification/global_oce_llc90 |
9 |
|
|
# and the present script, as |
10 |
|
|
# cvs co -d . MITgcm_contrib/gael/verification/setup_these_exps.csh |
11 |
|
|
#2) still in MITgcm/verification, execute the present shell |
12 |
|
|
# script to get input binaries and link code directories |
13 |
|
|
# source ./setup_these_exps.csh |
14 |
|
|
#3) exectute MITgcm with testreport. Two examples. |
15 |
|
|
# To run the cs32 test on one cpu : |
16 |
|
|
# ./testreport -t global_oce_cs32 |
17 |
|
|
# And to run the llc90 test on 12 cpus, using mpi |
18 |
|
|
# ./testreport -of=../tools/build_options/linux_amd64_gfortran -MPI 12 -command 'mpirun -np TR_NPROC ./mitgcmuv' -t global_oce_llc90 |
19 |
|
|
#4) if you have access to taf then you can run the adjoints as e.g. |
20 |
|
|
# ./testreport -ad -t global_oce_cs32 |
21 |
|
|
# ./testreport -of=../tools/build_options/linux_amd64_gfortran -MPI 12 -command 'mpirun -np TR_NPROC ./mitgcmuv_ad' -ad -t global_oce_llc90 |
22 |
|
|
#5) you will need to provide the content of global_oce_llc90/input_fields/core2 |
23 |
|
|
# and ecmwf, ecco_v4 for those global_oce_llc90 sub-experiments to also run |
24 |
|
|
|
25 |
|
|
cd global_oce_cs32 |
26 |
|
|
wget http://mitgcm.org/~gforget/input_fields_cs32.tar |
27 |
|
|
tar xf input_fields_cs32.tar |
28 |
|
|
\rm -f input_fields_cs32.tar |
29 |
|
|
ln -s code code_ad |
30 |
|
|
cd .. |
31 |
|
|
|
32 |
|
|
cd global_oce_llc90 |
33 |
|
|
wget http://mitgcm.org/~gforget/input_fields_llc90.tar |
34 |
|
|
tar xf input_fields_llc90.tar |
35 |
|
|
\rm -f input_fields_llc90.tar |
36 |
|
|
ln -s code code_ad |
37 |
|
|
cd code |
38 |
|
|
ln -s ../../global_oce_cs32/code/* . |
39 |
|
|
cd ../.. |
40 |
|
|
|