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 co MITgcm_contrib/ecco_darwin/v4_3deg |
8 |
|
cvs 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 -mo ../../MITgcm_contrib/ecco_darwin/v4_3deg/code |
../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 |
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* . |
30 |
|
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* . |
32 |
ln -sf ../verification/tutorial_global_oce_biogeo/input/*bin . |
ln -sf ../../MITgcm_contrib/ecco_darwin/v4_3deg/data/* . |
|
rm lev_* shi_* tren_t* |
|
|
ln -sf ../../MITgcm_contrib/ecco_darwin/v4_3deg/data/runof* . |
|
|
ln -sf ../../MITgcm_contrib/ecco_darwin/v4_3deg/data/*_2000 . |
|
|
ln -sf ../../MITgcm_contrib/ecco_darwin/v4_3deg/data/*.0005184000 . |
|
|
ln -sf ../../MITgcm_contrib/ecco_darwin/v4_3deg/data/ptracers* . |
|
|
ln -sf ../../MITgcm_contrib/ecco_darwin/v4_3deg/data/3deg* . |
|
33 |
./mitgcmuv > output.txt |
./mitgcmuv > output.txt |
|
|
|
|
# ============================== |
|
34 |
# Compare to verification output |
# Compare to verification output |
35 |
diff output.txt ../../MITgcm_contrib/ecco_darwin/v4_3deg/results/output.txt |
diff output.txt ../../MITgcm_contrib/ecco_darwin/v4_3deg/results/output.txt |
36 |
|
|
37 |
|
# ============================ |
38 |
|
# 4. Build and run MPI executable |
39 |
|
# Prerequisite: 1. Get code |
40 |
|
cd build |
41 |
|
rm * |
42 |
|
cp ../../MITgcm_contrib/ecco_darwin/v4_3deg/code/SIZE.h_mpi SIZE.h |
43 |
|
../tools/genmake2 -mpi -mo \ |
44 |
|
'../../MITgcm_contrib/ecco_darwin/v4_3deg/code ../../MITgcm_contrib/ecco_darwin/v4_llc270/code_darwin ../../MITgcm_contrib/ecco_darwin/v4_llc270/code' |
45 |
|
make depend |
46 |
|
make -j 8 |
47 |
|
cd ../run |
48 |
|
mkdir diags |
49 |
|
ln -sf ../build/mitgcmuv . |
50 |
|
cp ../../MITgcm_contrib/ecco_darwin/v4_llc270/input/data* . |
51 |
|
cp ../../MITgcm_contrib/ecco_darwin/v4_llc270/input_darwin/data* . |
52 |
|
cp ../../MITgcm_contrib/ecco_darwin/v4_3deg/input/*data* . |
53 |
|
mv data_mpi data |
54 |
|
ln -sf ../../MITgcm_contrib/ecco_darwin/v4_3deg/data/* . |
55 |
|
mpirun -np 8 ./mitgcmuv & |
56 |
|
# Monitor run |
57 |
|
tail -f STDOUT.0000 | grep advcfl_W |
58 |
|
|
59 |
|
# ============================ |
60 |
|
# 5. MATLAB code for computing volume, salt, salinity, and DIC budgets |
61 |
|
# Prerequisite: 4. Build and run MPI executable |
62 |
|
# Can be executed as soon as 3 or more months of output are available |
63 |
|
cd ../../MITgcm_contrib/ecco_darwin/v4_3deg/matlab |
64 |
|
# start matlab |
65 |
|
# if using gcmfaces: budget_v4_3deg_with_gcmfaces |
66 |
|
# if not using gcmfaces: budget_v4_3deg_without_gcmfaces |