1 |
dimitri |
1.1 |
# Verification experiment, initially based on |
2 |
|
|
# MITgcm/verification/tutorial_global_oce_biogeo |
3 |
|
|
|
4 |
|
|
# ======== |
5 |
|
|
# 1. Get code |
6 |
|
|
cvs -d :pserver:cvsanon:cvsanon@mitgcm.org:/u/gcmpack co -D "11/28/17" MITgcm_code |
7 |
dimitri |
1.5 |
cvs -d :pserver:cvsanon:cvsanon@mitgcm.org:/u/gcmpack co MITgcm_contrib/ecco_darwin/v4_3deg/data |
8 |
|
|
cvs -d :pserver:cvsanon:cvsanon@mitgcm.org:/u/gcmpack co MITgcm_contrib/ecco_darwin/v4_llc270_JAMES_paper |
9 |
dimitri |
1.1 |
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 |
|
|
mkdir build run |
14 |
|
|
|
15 |
|
|
# ================ |
16 |
|
|
# 2. Build executable |
17 |
|
|
# Prerequisite: 1. Get code |
18 |
|
|
cd build |
19 |
|
|
../tools/genmake2 -ieee -mo \ |
20 |
dimitri |
1.3 |
'../../MITgcm_contrib/ecco_darwin/v4_llc270_JAMES_paper/code_3deg ../../MITgcm_contrib/ecco_darwin/v4_llc270_JAMES_paper/code_darwin ../../MITgcm_contrib/ecco_darwin/v4_llc270_JAMES_paper/code' |
21 |
dimitri |
1.1 |
make depend |
22 |
|
|
make -j 8 |
23 |
|
|
|
24 |
|
|
# ====================== |
25 |
|
|
# 3. Run verification setup |
26 |
|
|
# Prerequisite: 2. Build executable |
27 |
|
|
cd ../run |
28 |
|
|
ln -sf ../build/mitgcmuv . |
29 |
dimitri |
1.3 |
cp ../../MITgcm_contrib/ecco_darwin/v4_llc270_JAMES_paper/input/data* . |
30 |
|
|
cp ../../MITgcm_contrib/ecco_darwin/v4_llc270_JAMES_paper/input_darwin/data* . |
31 |
|
|
cp ../../MITgcm_contrib/ecco_darwin/v4_llc270_JAMES_paper/input_3deg/*data* . |
32 |
dimitri |
1.1 |
ln -sf ../../MITgcm_contrib/ecco_darwin/v4_3deg/data/* . |
33 |
dimitri |
1.5 |
rm data.exch2 |
34 |
dimitri |
1.1 |
./mitgcmuv > output.txt |
35 |
|
|
# Compare to verification output |
36 |
dimitri |
1.4 |
diff <(grep %MON output.txt) <(grep %MON ../../MITgcm_contrib/ecco_darwin/v4_llc270_JAMES_paper/results/output_3deg.txt) |