| 7 |
#source ~jmc/bin/intel_v11.sh |
#source ~jmc/bin/intel_v11.sh |
| 8 |
echo 'source ~jmc/bin/intel_v12.sh' |
echo 'source ~jmc/bin/intel_v12.sh' |
| 9 |
source ~jmc/bin/intel_v12.sh |
source ~jmc/bin/intel_v12.sh |
| 10 |
tst_list='mp2 ur4' |
|
| 11 |
#tst_list='ur4' |
if test $# = 0 |
| 12 |
#tst_list='mp2' |
then |
| 13 |
|
tst_list='mp2 ur4 adm' |
| 14 |
|
else |
| 15 |
|
tst_list=$* |
| 16 |
|
fi |
| 17 |
|
|
| 18 |
for tt in $tst_list |
for tt in $tst_list |
| 19 |
do |
do |
| 21 |
echo "==========================================================================" |
echo "==========================================================================" |
| 22 |
set -x |
set -x |
| 23 |
rm -f tr_clean_$tt.log |
rm -f tr_clean_$tt.log |
| 24 |
|
if test $tt != 'adm' ; then |
| 25 |
#- cleanup previous restart: |
#- cleanup previous restart: |
| 26 |
( cd MITgcm_$tt/verification ; ../tools/do_tst_2+2 -clean > ../../tr_clean_$tt.log 2>&1 ) |
( cd MITgcm_$tt/verification ; ../tools/do_tst_2+2 -clean > ../../tr_clean_$tt.log 2>&1 ) |
| 27 |
#- cleanup previous test: |
#- cleanup previous test: |
| 28 |
( cd MITgcm_$tt/verification ; testreport -clean >> ../../tr_clean_$tt.log 2>&1 ) |
( cd MITgcm_$tt/verification ; testreport -clean >> ../../tr_clean_$tt.log 2>&1 ) |
| 29 |
|
else |
| 30 |
|
( cd MITgcm_$tt/verification ; testreport -adm -clean > ../../tr_clean_$tt.log 2>&1 ) |
| 31 |
|
fi |
| 32 |
set +x |
set +x |
| 33 |
echo "" |
echo "" |
| 34 |
|
|
| 48 |
set -x |
set -x |
| 49 |
pwd |
pwd |
| 50 |
|
|
| 51 |
|
if test $tt = 'adm' ; then |
| 52 |
|
if test -e tr_out.txt ; then /bin/rm -f tr_out.sav ; mv tr_out.txt tr_out.sav ; fi |
| 53 |
|
|
| 54 |
|
testreport -MPI 3 -adm -of ../tools/build_options/linux_amd64_ifort11 \ |
| 55 |
|
-devel -nc -ef -syntax-only -obj -dd > ../../tr_run_$tt.log 2>&1 |
| 56 |
|
|
| 57 |
|
testreport -MPI 3 -adm -of ../tools/build_options/linux_amd64_ifort11 \ |
| 58 |
|
-devel -command='mpirun -v -np TR_NPROC ./mitgcmuv_ad' \ |
| 59 |
|
-a jmc@mitgcm.org -nc >> ../../tr_run_$tt.log 2>&1 |
| 60 |
|
|
| 61 |
|
#unset echo |
| 62 |
|
sed -n "/ email /,$ p" ../../tr_run_$tt.log |
| 63 |
|
fi |
| 64 |
|
|
| 65 |
if test $tt = 'mp2' ; then |
if test $tt = 'mp2' ; then |
| 66 |
|
|
| 67 |
export OMP_NUM_THREADS=2 |
export OMP_NUM_THREADS=2 |
| 68 |
export KMP_STACKSIZE=400m |
export KMP_STACKSIZE=400m |
| 69 |
|
|
| 70 |
testreport -MPI 2 -mth -of ../tools/build_options/linux_amd64_ifort11+mpi_generic \ |
if test -e tr_out.txt ; then /bin/rm -f tr_out.sav ; mv tr_out.txt tr_out.sav ; fi |
| 71 |
|
|
| 72 |
|
testreport -MPI 2 -mth -of ../tools/build_options/linux_amd64_ifort11 \ |
| 73 |
|
-devel -nc -ef -syntax-only -obj -dd > ../../tr_run_$tt.log 2>&1 |
| 74 |
|
|
| 75 |
|
testreport -MPI 2 -mth -of ../tools/build_options/linux_amd64_ifort11 \ |
| 76 |
-devel -command='mpirun -v -np TR_NPROC ./mitgcmuv' \ |
-devel -command='mpirun -v -np TR_NPROC ./mitgcmuv' \ |
| 77 |
-a jmc@mitgcm.org -nc > ../../tr_run_$tt.log 2>&1 |
-a jmc@mitgcm.org -nc >> ../../tr_run_$tt.log 2>&1 |
| 78 |
|
|
| 79 |
#unset echo |
#unset echo |
| 80 |
sed -n "/ email /,$ p" ../../tr_run_$tt.log |
sed -n "/ email /,$ p" ../../tr_run_$tt.log |
| 88 |
|
|
| 89 |
if test $tt = 'ur4' ; then |
if test $tt = 'ur4' ; then |
| 90 |
|
|
| 91 |
testreport -MPI 3 -ur4 -of ../tools/build_options/linux_amd64_ifort11+mpi_generic \ |
if test -e tr_out.txt ; then /bin/rm -f tr_out.sav ; mv tr_out.txt tr_out.sav ; fi |
| 92 |
|
|
| 93 |
|
testreport -MPI 3 -ur4 -of ../tools/build_options/linux_amd64_ifort11 \ |
| 94 |
-devel -nc -ef -syntax-only -obj -dd > ../../tr_run_$tt.log 2>&1 |
-devel -nc -ef -syntax-only -obj -dd > ../../tr_run_$tt.log 2>&1 |
| 95 |
|
|
| 96 |
testreport -MPI 3 -ur4 -of ../tools/build_options/linux_amd64_ifort11+mpi_generic \ |
testreport -MPI 3 -ur4 -of ../tools/build_options/linux_amd64_ifort11 \ |
| 97 |
-devel -nc -match 5 -command='mpirun -v -np TR_NPROC ./mitgcmuv' \ |
-devel -nc -match 5 -command='mpirun -v -np TR_NPROC ./mitgcmuv' \ |
| 98 |
-a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1 |
-a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1 |
| 99 |
|
|