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