2 |
# MITgcm/verification/tutorial_global_oce_biogeo |
# MITgcm/verification/tutorial_global_oce_biogeo |
3 |
|
|
4 |
# ======== |
# ======== |
5 |
# Get code |
# 1. Get code |
6 |
cvs -d :pserver:cvsanon:cvsanon@mitgcm.org:/u/gcmpack co -D "11/28/17" MITgcm_code |
cvs -d :pserver:cvsanon:cvsanon@mitgcm.org:/u/gcmpack co -D "11/28/17" MITgcm_code |
7 |
cvs -d :pserver:cvsanon:cvsanon@mitgcm.org:/u/gcmpack co MITgcm_contrib/ecco_darwin/v4_3deg |
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 |
cvs -d :pserver:cvsanon:cvsanon@mitgcm.org:/u/gcmpack co MITgcm_contrib/ecco_darwin/v4_llc270 |
9 |
cvs -d :pserver:cvsanon:cvsanon@mitgcm.org:/u/gcmpack co -D "03/22/18" MITgcm_contrib/darwin/pkg/darwin |
cvs -d :pserver:cvsanon:cvsanon@mitgcm.org:/u/gcmpack co -D "03/22/18" MITgcm_contrib/darwin/pkg/darwin |
|
cvs -d :pserver:cvsanon:cvsanon@mitgcm.org:/u/gcmpack co -D "11/28/17" MITgcm/verification/tutorial_global_oce_biogeo |
|
10 |
cd MITgcm/pkg |
cd MITgcm/pkg |
11 |
ln -sf ../../MITgcm_contrib/darwin/pkg/darwin . |
ln -sf ../../MITgcm_contrib/darwin/pkg/darwin . |
12 |
cd .. |
cd .. |
13 |
|
mkdir build run |
14 |
|
|
15 |
# ================ |
# ================ |
16 |
# Build executable |
# 2. Build executable |
17 |
mkdir build |
# Prerequisite: 1. Get code |
18 |
cd build |
cd build |
19 |
../tools/genmake2 -ieee -mo \ |
../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' |
'../../MITgcm_contrib/ecco_darwin/v4_3deg/code ../../MITgcm_contrib/ecco_darwin/v4_llc270/code_darwin ../../MITgcm_contrib/ecco_darwin/v4_llc270/code' |
21 |
make depend |
make depend |
22 |
make -j 8 |
make -j 8 |
|
cd .. |
|
23 |
|
|
24 |
# ====================== |
# ====================== |
25 |
# Run verification setup |
# 3. Run verification setup |
26 |
mkdir run |
# Prerequisite: 2. Build executable |
27 |
cd run |
cd ../run |
28 |
ln -sf ../build/mitgcmuv . |
ln -sf ../build/mitgcmuv . |
29 |
cp ../../MITgcm_contrib/ecco_darwin/v4_llc270/input/data* . |
cp ../../MITgcm_contrib/ecco_darwin/v4_llc270/input/data* . |
30 |
cp ../../MITgcm_contrib/ecco_darwin/v4_llc270/input_darwin/data* . |
cp ../../MITgcm_contrib/ecco_darwin/v4_llc270/input_darwin/data* . |
31 |
cp ../../MITgcm_contrib/ecco_darwin/v4_3deg/input/*data* . |
cp ../../MITgcm_contrib/ecco_darwin/v4_3deg/input/*data* . |
|
ln -sf ../verification/tutorial_global_oce_biogeo/input/bathy.bin . |
|
32 |
ln -sf ../../MITgcm_contrib/ecco_darwin/v4_3deg/data/* . |
ln -sf ../../MITgcm_contrib/ecco_darwin/v4_3deg/data/* . |
33 |
|
mkdir diags |
34 |
./mitgcmuv > output.txt |
./mitgcmuv > output.txt |
|
|
|
|
# ============================== |
|
35 |
# Compare to verification output |
# Compare to verification output |
36 |
diff output.txt ../../MITgcm_contrib/ecco_darwin/v4_3deg/results/output.txt |
diff <(grep %MON output.txt) <(grep %MON ../../MITgcm_contrib/ecco_darwin/v4_3deg/results/output.txt) |
37 |
|
|
38 |
|
# ============================ |
39 |
|
# 4. Build and run MPI executable |
40 |
|
# Prerequisite: 1. Get code |
41 |
|
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 |
|
mkdir diags |
50 |
|
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 |
|
# Monitor run |
58 |
|
tail -f STDOUT.0000 | grep advcfl_W |
59 |
|
|
60 |
|
# ============================ |
61 |
|
# 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 |