1 |
dimitri |
1.1 |
# Verification experiment, initially based on |
2 |
|
|
# MITgcm/verification/tutorial_global_oce_biogeo |
3 |
|
|
|
4 |
|
|
# ======== |
5 |
|
|
# Get code |
6 |
|
|
cvs co MITgcm_contrib/ecco_darwin/v4_3deg |
7 |
|
|
git clone git@github.com:MITgcm/MITgcm.git |
8 |
|
|
|
9 |
|
|
# ================ |
10 |
|
|
# Build executable |
11 |
|
|
cd MITgcm |
12 |
|
|
mkdir build |
13 |
|
|
cd build |
14 |
|
|
../tools/genmake2 -mo ../../MITgcm_contrib/ecco_darwin/v4_3deg/code |
15 |
|
|
make depend |
16 |
|
|
make -j 8 |
17 |
|
|
|
18 |
|
|
# ====================== |
19 |
|
|
# Run verification setup |
20 |
|
|
cd .. |
21 |
|
|
mkdir run |
22 |
|
|
cd run |
23 |
|
|
ln -sf ../build/mitgcmuv . |
24 |
|
|
cp ../../MITgcm_contrib/ecco_darwin/v4_3deg/input/* . |
25 |
|
|
ln -sf ../verification/tutorial_global_oce_biogeo/input/*.bin . |
26 |
|
|
ln -sf ../verification/tutorial_global_oce_biogeo/input/pickup* . |
27 |
|
|
./mitgcmuv > output.txt |
28 |
|
|
|
29 |
|
|
# ============================== |
30 |
|
|
# Compare to verification output |
31 |
|
|
diff output.txt ../../MITgcm_contrib/ecco_darwin/v4_3deg/results/output.txt |