/[MITgcm]/MITgcm_contrib/test_scripts/other/testing_loc
ViewVC logotype

Contents of /MITgcm_contrib/test_scripts/other/testing_loc

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.3 - (show annotations) (download)
Mon Jul 11 22:58:30 2011 UTC (14 years, 5 months ago) by jmc
Branch: MAIN
Changes since 1.2: +7 -7 lines
use "-devel" option from generic ifort11 optfile (linux_amd64_ifort11+mpi_generic)

1 #! /usr/bin/env bash
2
3 # $Header: /u/gcmpack/MITgcm_contrib/test_scripts/other/testing_loc,v 1.2 2011/06/03 17:59:32 jmc Exp $
4 # $Name: $
5
6 #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 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 testreport -MPI 2 -mth -of ../tools/build_options/linux_amd64_ifort11+mpi_generic \
50 -devel -command='mpirun -v -np TR_NPROC ./mitgcmuv' \
51 -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 testreport -MPI 3 -ur4 -of ../tools/build_options/linux_amd64_ifort11+mpi_generic \
66 -devel -nc -dd -nr > ../../tr_run_$tt.log 2>&1
67
68 set +x
69 echo '' ; echo ' remove */build/*.o */mitgcmuv'
70 /bin/rm -f */build/*.o
71 /bin/rm -f */build/mitgcmuv
72 echo ''
73 set -x
74
75 testreport -MPI 3 -ur4 -of ../tools/build_options/linux_amd64_ifort11+mpi_generic \
76 -devel -match 5 -command='mpirun -v -np TR_NPROC ./mitgcmuv' \
77 -a jmc@mitgcm.org -q >> ../../tr_run_$tt.log 2>&1
78
79 sed -n "/ email /,$ p" ../../tr_run_$tt.log
80
81 #- test restart:
82 echo '' >> ../../tr_run_$tt.log 2>&1
83 ../tools/do_tst_2+2 -mpi -exe 'mpirun -v -np TR_NPROC ./mitgcmuv' \
84 -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1
85
86 fi
87
88 set +x
89 cd ../..
90
91 done

  ViewVC Help
Powered by ViewVC 1.1.22