| 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 |
dimitri |
1.12 |
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 |
dimitri |
1.2 |
cvs -d :pserver:cvsanon:cvsanon@mitgcm.org:/u/gcmpack co -D "03/22/18" MITgcm_contrib/darwin/pkg/darwin |
| 11 |
|
|
cd MITgcm/pkg |
| 12 |
|
|
ln -sf ../../MITgcm_contrib/darwin/pkg/darwin . |
| 13 |
|
|
cd .. |
| 14 |
dimitri |
1.1 |
|
| 15 |
|
|
# ================ |
| 16 |
|
|
# Build executable |
| 17 |
|
|
mkdir build |
| 18 |
|
|
cd build |
| 19 |
dimitri |
1.10 |
../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 |
dimitri |
1.1 |
make depend |
| 22 |
|
|
make -j 8 |
| 23 |
dimitri |
1.2 |
cd .. |
| 24 |
dimitri |
1.1 |
|
| 25 |
|
|
# ====================== |
| 26 |
|
|
# Run verification setup |
| 27 |
|
|
mkdir run |
| 28 |
|
|
cd run |
| 29 |
|
|
ln -sf ../build/mitgcmuv . |
| 30 |
dimitri |
1.9 |
cp ../../MITgcm_contrib/ecco_darwin/v4_llc270/input/data* . |
| 31 |
|
|
cp ../../MITgcm_contrib/ecco_darwin/v4_llc270/input_darwin/data* . |
| 32 |
dimitri |
1.4 |
cp ../../MITgcm_contrib/ecco_darwin/v4_3deg/input/*data* . |
| 33 |
dimitri |
1.9 |
ln -sf ../verification/tutorial_global_oce_biogeo/input/bathy.bin . |
| 34 |
|
|
ln -sf ../../MITgcm_contrib/ecco_darwin/v4_3deg/data/* . |
| 35 |
dimitri |
1.1 |
./mitgcmuv > output.txt |
| 36 |
|
|
|
| 37 |
|
|
# ============================== |
| 38 |
|
|
# Compare to verification output |
| 39 |
|
|
diff output.txt ../../MITgcm_contrib/ecco_darwin/v4_3deg/results/output.txt |
| 40 |
dimitri |
1.11 |
|
| 41 |
|
|
|
| 42 |
|
|
# ============================ |
| 43 |
|
|
# Build and run MPI executable |
| 44 |
|
|
cd build |
| 45 |
|
|
rm * |
| 46 |
|
|
cp ../../MITgcm_contrib/ecco_darwin/v4_3deg/code/SIZE.h_mpi SIZE.h |
| 47 |
|
|
../tools/genmake2 -mpi -mo \ |
| 48 |
|
|
'../../MITgcm_contrib/ecco_darwin/v4_3deg/code ../../MITgcm_contrib/ecco_darwin/v4_llc270/code_darwin ../../MITgcm_contrib/ecco_darwin/v4_llc270/code' |
| 49 |
|
|
make depend |
| 50 |
|
|
make -j 8 |
| 51 |
|
|
cd ../run |
| 52 |
|
|
mpirun -np 8 ./mitgcmuv |