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