1 |
jmc |
1.1 |
#! /usr/bin/env bash |
2 |
|
|
|
3 |
|
|
# $Header: $ |
4 |
|
|
# $Name: $ |
5 |
|
|
|
6 |
|
|
echo 'source ~jmc/bin/intel_64.csh' |
7 |
|
|
source ~jmc/bin/intel_64.sh |
8 |
|
|
tst_list='mp2 ur4' |
9 |
|
|
#tst_list='ur4' |
10 |
|
|
#tst_list='mp2' |
11 |
|
|
|
12 |
|
|
for tt in $tst_list |
13 |
|
|
do |
14 |
|
|
|
15 |
|
|
echo "==========================================================================" |
16 |
|
|
set -x |
17 |
|
|
rm -f tr_clean_$tt.log |
18 |
|
|
#- cleanup previous restart: |
19 |
|
|
( cd MITgcm_$tt/verification ; ../tools/do_tst_2+2 -clean > ../../tr_clean_$tt.log 2>&1 ) |
20 |
|
|
#- cleanup previous test: |
21 |
|
|
( cd MITgcm_$tt/verification ; testreport -clean >> ../../tr_clean_$tt.log 2>&1 ) |
22 |
|
|
|
23 |
|
|
set +x |
24 |
|
|
echo "" |
25 |
|
|
|
26 |
|
|
echo "==========================================================================" |
27 |
|
|
set -x |
28 |
|
|
( cd MITgcm_$tt ; cvs update -P -d >> ../tr_clean_$tt.log 2>&1 ) |
29 |
|
|
set +x |
30 |
|
|
echo "" |
31 |
|
|
|
32 |
|
|
echo "==========================================================================" |
33 |
|
|
|
34 |
|
|
mv -f tr_run_$tt.log tr_run_$tt.log_bak |
35 |
|
|
cd MITgcm_$tt/verification |
36 |
|
|
|
37 |
|
|
date |
38 |
|
|
# verbose mode: |
39 |
|
|
set -x |
40 |
|
|
pwd |
41 |
|
|
|
42 |
|
|
if test $tt = 'mp2' ; then |
43 |
|
|
|
44 |
|
|
export OMP_NUM_THREADS=2 |
45 |
|
|
export KMP_STACKSIZE=400m |
46 |
|
|
|
47 |
|
|
testreport -MPI 2 -mth -of ../tools/build_options/linux_amd64_ifort+mpi_loc \ |
48 |
|
|
-command='mpirun -v -np TR_NPROC ./mitgcmuv' \ |
49 |
|
|
-a jmc@mitgcm.org -nc > ../../tr_run_$tt.log 2>&1 |
50 |
|
|
|
51 |
|
|
#unset echo |
52 |
|
|
sed -n "/ email /,$ p" ../../tr_run_$tt.log |
53 |
|
|
|
54 |
|
|
#- test restart: |
55 |
|
|
echo '' >> ../../tr_run_$tt.log 2>&1 |
56 |
|
|
../tools/do_tst_2+2 -mpi -exe 'mpirun -v -np TR_NPROC ./mitgcmuv' \ |
57 |
|
|
-a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1 |
58 |
|
|
|
59 |
|
|
fi |
60 |
|
|
|
61 |
|
|
if test $tt = 'ur4' ; then |
62 |
|
|
|
63 |
|
|
testreport -MPI 3 -ur4 -of ../../linux_amd64_ifort+mpi_chk \ |
64 |
|
|
-nc -dd -nr > ../../tr_run_$tt.log 2>&1 |
65 |
|
|
|
66 |
|
|
set +x |
67 |
|
|
echo '' ; echo ' remove */build/*.o */mitgcmuv' |
68 |
|
|
/bin/rm -f */build/*.o |
69 |
|
|
/bin/rm -f */build/mitgcmuv |
70 |
|
|
echo '' |
71 |
|
|
set -x |
72 |
|
|
|
73 |
|
|
testreport -MPI 3 -ur4 -of ../../linux_amd64_ifort+mpi_chk \ |
74 |
|
|
-match 5 -command='mpirun -v -np TR_NPROC ./mitgcmuv' \ |
75 |
|
|
-a jmc@mitgcm.org -q >> ../../tr_run_$tt.log 2>&1 |
76 |
|
|
|
77 |
|
|
sed -n "/ email /,$ p" ../../tr_run_$tt.log |
78 |
|
|
|
79 |
|
|
#- test restart: |
80 |
|
|
echo '' >> ../../tr_run_$tt.log 2>&1 |
81 |
|
|
../tools/do_tst_2+2 -mpi -exe 'mpirun -v -np TR_NPROC ./mitgcmuv' \ |
82 |
|
|
-a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1 |
83 |
|
|
|
84 |
|
|
fi |
85 |
|
|
|
86 |
|
|
set +x |
87 |
|
|
cd ../.. |
88 |
|
|
|
89 |
|
|
done |