1 |
dimitri |
1.1 |
# Verification experiment, initially based on |
2 |
|
|
# MITgcm/verification/tutorial_global_oce_biogeo |
3 |
|
|
|
4 |
|
|
# ======== |
5 |
dimitri |
1.15 |
# 1. Get code |
6 |
dimitri |
1.2 |
cvs -d :pserver:cvsanon:cvsanon@mitgcm.org:/u/gcmpack co -D "11/28/17" MITgcm_code |
7 |
dimitri |
1.19 |
cvs -d :pserver:cvsanon:cvsanon@mitgcm.org:/u/gcmpack co MITgcm_contrib/ecco_darwin/v4_3deg |
8 |
|
|
cvs -d :pserver:cvsanon:cvsanon@mitgcm.org:/u/gcmpack co MITgcm_contrib/ecco_darwin/v4_llc270 |
9 |
dimitri |
1.2 |
cvs -d :pserver:cvsanon:cvsanon@mitgcm.org:/u/gcmpack co -D "03/22/18" MITgcm_contrib/darwin/pkg/darwin |
10 |
|
|
cd MITgcm/pkg |
11 |
|
|
ln -sf ../../MITgcm_contrib/darwin/pkg/darwin . |
12 |
|
|
cd .. |
13 |
dimitri |
1.15 |
mkdir build run |
14 |
dimitri |
1.1 |
|
15 |
|
|
# ================ |
16 |
dimitri |
1.15 |
# 2. Build executable |
17 |
|
|
# Prerequisite: 1. Get code |
18 |
dimitri |
1.1 |
cd build |
19 |
dimitri |
1.10 |
../tools/genmake2 -ieee -mo \ |
20 |
|
|
'../../MITgcm_contrib/ecco_darwin/v4_3deg/code ../../MITgcm_contrib/ecco_darwin/v4_llc270/code_darwin ../../MITgcm_contrib/ecco_darwin/v4_llc270/code' |
21 |
dimitri |
1.1 |
make depend |
22 |
|
|
make -j 8 |
23 |
|
|
|
24 |
|
|
# ====================== |
25 |
dimitri |
1.15 |
# 3. Run verification setup |
26 |
|
|
# Prerequisite: 2. Build executable |
27 |
|
|
cd ../run |
28 |
dimitri |
1.1 |
ln -sf ../build/mitgcmuv . |
29 |
dimitri |
1.9 |
cp ../../MITgcm_contrib/ecco_darwin/v4_llc270/input/data* . |
30 |
|
|
cp ../../MITgcm_contrib/ecco_darwin/v4_llc270/input_darwin/data* . |
31 |
dimitri |
1.4 |
cp ../../MITgcm_contrib/ecco_darwin/v4_3deg/input/*data* . |
32 |
dimitri |
1.9 |
ln -sf ../../MITgcm_contrib/ecco_darwin/v4_3deg/data/* . |
33 |
dimitri |
1.17 |
mkdir diags |
34 |
dimitri |
1.1 |
./mitgcmuv > output.txt |
35 |
|
|
# Compare to verification output |
36 |
dimitri |
1.18 |
diff <(grep %MON output.txt) <(grep %MON ../../MITgcm_contrib/ecco_darwin/v4_3deg/results/output.txt) |
37 |
dimitri |
1.11 |
|
38 |
|
|
# ============================ |
39 |
dimitri |
1.15 |
# 4. Build and run MPI executable |
40 |
|
|
# Prerequisite: 1. Get code |
41 |
dimitri |
1.11 |
cd build |
42 |
|
|
rm * |
43 |
|
|
cp ../../MITgcm_contrib/ecco_darwin/v4_3deg/code/SIZE.h_mpi SIZE.h |
44 |
|
|
../tools/genmake2 -mpi -mo \ |
45 |
|
|
'../../MITgcm_contrib/ecco_darwin/v4_3deg/code ../../MITgcm_contrib/ecco_darwin/v4_llc270/code_darwin ../../MITgcm_contrib/ecco_darwin/v4_llc270/code' |
46 |
|
|
make depend |
47 |
|
|
make -j 8 |
48 |
|
|
cd ../run |
49 |
dimitri |
1.15 |
mkdir diags |
50 |
dimitri |
1.13 |
ln -sf ../build/mitgcmuv . |
51 |
|
|
cp ../../MITgcm_contrib/ecco_darwin/v4_llc270/input/data* . |
52 |
|
|
cp ../../MITgcm_contrib/ecco_darwin/v4_llc270/input_darwin/data* . |
53 |
|
|
cp ../../MITgcm_contrib/ecco_darwin/v4_3deg/input/*data* . |
54 |
|
|
mv data_mpi data |
55 |
|
|
ln -sf ../../MITgcm_contrib/ecco_darwin/v4_3deg/data/* . |
56 |
|
|
mpirun -np 8 ./mitgcmuv & |
57 |
dimitri |
1.15 |
# Monitor run |
58 |
dimitri |
1.13 |
tail -f STDOUT.0000 | grep advcfl_W |
59 |
dcarroll |
1.14 |
|
60 |
|
|
# ============================ |
61 |
dimitri |
1.15 |
# 5. MATLAB code for computing volume, salt, salinity, and DIC budgets |
62 |
|
|
# Prerequisite: 4. Build and run MPI executable |
63 |
|
|
# Can be executed as soon as 3 or more months of output are available |
64 |
|
|
cd ../../MITgcm_contrib/ecco_darwin/v4_3deg/matlab |
65 |
|
|
# start matlab |
66 |
|
|
# if using gcmfaces: budget_v4_3deg_with_gcmfaces |
67 |
|
|
# if not using gcmfaces: budget_v4_3deg_without_gcmfaces |