1 |
dimitri |
1.1 |
# Verification experiment, initially based on |
2 |
|
|
# MITgcm/verification/tutorial_global_oce_biogeo |
3 |
|
|
|
4 |
|
|
# ======== |
5 |
|
|
# Get code |
6 |
dimitri |
1.2 |
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 |
8 |
|
|
cvs -d :pserver:cvsanon:cvsanon@mitgcm.org:/u/gcmpack co -D "03/22/18" MITgcm_contrib/darwin/pkg/darwin |
9 |
|
|
cvs -d :pserver:cvsanon:cvsanon@mitgcm.org:/u/gcmpack co -D "11/28/17" MITgcm/verification/tutorial_global_oce_biogeo |
10 |
|
|
cd MITgcm/pkg |
11 |
|
|
ln -sf ../../MITgcm_contrib/darwin/pkg/darwin . |
12 |
|
|
cd .. |
13 |
dimitri |
1.1 |
|
14 |
|
|
# ================ |
15 |
|
|
# Build executable |
16 |
|
|
mkdir build |
17 |
|
|
cd build |
18 |
|
|
../tools/genmake2 -mo ../../MITgcm_contrib/ecco_darwin/v4_3deg/code |
19 |
|
|
make depend |
20 |
|
|
make -j 8 |
21 |
dimitri |
1.2 |
cd .. |
22 |
dimitri |
1.1 |
|
23 |
|
|
# ====================== |
24 |
|
|
# Run verification setup |
25 |
|
|
mkdir run |
26 |
|
|
cd run |
27 |
|
|
ln -sf ../build/mitgcmuv . |
28 |
|
|
cp ../../MITgcm_contrib/ecco_darwin/v4_3deg/input/* . |
29 |
dimitri |
1.3 |
ln -sf ../../MITgcm_contrib/ecco_darwin/v4_3deg/input/*.0005184000 . |
30 |
dimitri |
1.1 |
ln -sf ../verification/tutorial_global_oce_biogeo/input/*.bin . |
31 |
|
|
./mitgcmuv > output.txt |
32 |
|
|
|
33 |
|
|
# ============================== |
34 |
|
|
# Compare to verification output |
35 |
|
|
diff output.txt ../../MITgcm_contrib/ecco_darwin/v4_3deg/results/output.txt |