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

Diff of /MITgcm_contrib/test_scripts/other/testing_loc

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

revision 1.10 by jmc, Sun Aug 5 16:42:05 2012 UTC revision 1.15 by jmc, Tue Jan 15 19:02:02 2013 UTC
# Line 8  if test $# = 0 ; then Line 8  if test $# = 0 ; then
8    exit    exit
9  else  else
10    if test $1 = ifort ; then    if test $1 = ifort ; then
11      tst_list='iadm imp2 iur4'  #   tst_list='iadm imp2 iur4'
12     #tst_list='iadm imp2 iur4 iad4'      tst_list='iad4 imp2 iur4'
13    elif test $1 = gfort ; then    elif test $1 = gfort ; then
14      tst_list='gadm gads gmp2 gmpi gfo g77'  #   tst_list='gadm gads gmp2 gmpi gfo g77'
15  #   tst_list='gadm gads gmp2 gfo g77'      tst_list='gadm gads gmp2 gfo g77'
16      elif test $1 = gfor4 ; then
17        tst_list='gad4 gmp4 gfo4'
18    else    else
19      tst_list=$*      tst_list=$*
20    fi    fi
21  fi  fi
22      echo "run: \""`basename $0` $*"\" on:" `date`
23      echo " tst_list='$tst_list'"
24    
25  #-- for now, cannot mix ifort/gfortran tests:  #-- for now, cannot mix ifort/gfortran tests:
26  gfort=1  gfort=1
# Line 33  if [ $gfort -eq 0 ] ; then Line 37  if [ $gfort -eq 0 ] ; then
37    #source ~jmc/bin/intel_v11.sh    #source ~jmc/bin/intel_v11.sh
38     echo 'source ~jmc/bin/intel_v12.sh'     echo 'source ~jmc/bin/intel_v12.sh'
39     source ~jmc/bin/intel_v12.sh     source ~jmc/bin/intel_v12.sh
    export GFORTRAN_OPTFILE=f  
40  fi  fi
41  if [ $gfort -eq 2 ] ; then  if [ $gfort -eq 2 ] ; then
42     echo 'source ~jmc/bin/openmpi.sh'     echo 'source ~jmc/bin/openmpi.sh'
43     source ~jmc/bin/openmpi.sh     source ~jmc/bin/openmpi.sh
    export GFORTRAN_OPTFILE=t  
44  fi  fi
45    
46  #--------------------------------------------------------------------  #--------------------------------------------------------------------
# Line 46  for tt in $tst_list Line 48  for tt in $tst_list
48  do  do
49    
50    echo "=========================================================================="    echo "=========================================================================="
51    set -x  # set -x
52    rm -f tr_clean_$tt.log    rm -f tr_clean_$tt.log
53  if test $tt = 'iadm' -o $tt = 'iad4' -o $tt = 'gadm' -o  $tt = 'gads' ; then    echo $tt | grep '^.ad' > /dev/null 2>&1 ; fwd=$?
54      echo " testing tt= $tt , fwd= $fwd"
55    if [ $fwd -eq 0 ] ; then
56      set -x
57    ( cd MITgcm_$tt/verification ; testreport -adm -clean > ../../tr_clean_$tt.log 2>&1 )    ( cd MITgcm_$tt/verification ; testreport -adm -clean > ../../tr_clean_$tt.log 2>&1 )
58  else  else
59      set -x
60    #- cleanup previous restart:    #- cleanup previous restart:
61    ( 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 )
62    #- cleanup previous test:    #- cleanup previous test:
63    ( cd MITgcm_$tt/verification ; testreport -clean >> ../../tr_clean_$tt.log 2>&1 )    ( cd MITgcm_$tt/verification ; testreport -clean >> ../../tr_clean_$tt.log 2>&1 )
 fi  
64    set +x    set +x
65    fi
66      if [ $gfort -eq 0 ] ; then
67        echo ' remove all Makefile_syntax and do "cvs update -P -d"' >> tr_clean_$tt.log
68        ( cd MITgcm_$tt/verification ; rm -f */build/Makefile_syntax )
69      else
70        echo ' run "cvs update -P -d"'  >> tr_clean_$tt.log
71      fi
72    echo ""    echo ""
73    
74    echo "=========================================================================="    echo "=========================================================================="
# Line 81  case $tt in Line 93  case $tt in
93    
94    testreport -MPI 3 -adm -of ../tools/build_options/linux_amd64_ifort11 \    testreport -MPI 3 -adm -of ../tools/build_options/linux_amd64_ifort11 \
95     -devel -nc -repl_mk do_make_syntax.sh -obj -dd > ../../tr_run_$tt.log 2>&1     -devel -nc -repl_mk do_make_syntax.sh -obj -dd > ../../tr_run_$tt.log 2>&1
96      echo '' >> ../../tr_run_$tt.log 2>&1
97    
98    testreport -MPI 3 -adm -of ../tools/build_options/linux_amd64_ifort11 \    testreport -MPI 3 -adm -of ../tools/build_options/linux_amd64_ifort11 \
99     -devel -q -command='mpirun -v -np TR_NPROC ./mitgcmuv_ad' \     -devel -q -command='mpirun -v -np TR_NPROC ./mitgcmuv_ad' \
100     -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1     -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1
101    
102    #unset echo    sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log
   sed -n "/ email /,$ p" ../../tr_run_$tt.log  
103  ;;  ;;
104    
105  'iad4' )  'iad4' )
# Line 95  case $tt in Line 107  case $tt in
107    
108    testreport -MPI 3 -ur4 -adm -of ../tools/build_options/linux_amd64_ifort11 \    testreport -MPI 3 -ur4 -adm -of ../tools/build_options/linux_amd64_ifort11 \
109     -devel -nc -repl_mk do_make_syntax.sh -obj -dd > ../../tr_run_$tt.log 2>&1     -devel -nc -repl_mk do_make_syntax.sh -obj -dd > ../../tr_run_$tt.log 2>&1
110      echo '' >> ../../tr_run_$tt.log 2>&1
111    
112    testreport -MPI 3 -ur4 -adm -of ../tools/build_options/linux_amd64_ifort11 \    testreport -MPI 3 -ur4 -adm -of ../tools/build_options/linux_amd64_ifort11 \
113     -devel -q -match 5 -command='mpirun -v -np TR_NPROC ./mitgcmuv_ad' \     -devel -q -match 5 -command='mpirun -v -np TR_NPROC ./mitgcmuv_ad' \
114     -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1     -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1
115    
116    #unset echo    sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log
   sed -n "/ email /,$ p" ../../tr_run_$tt.log  
117  ;;  ;;
118    
119  'imp2')  'imp2')
# Line 112  case $tt in Line 124  case $tt in
124    
125    testreport -MPI 2 -mth -of ../tools/build_options/linux_amd64_ifort11 \    testreport -MPI 2 -mth -of ../tools/build_options/linux_amd64_ifort11 \
126     -devel -nc -repl_mk do_make_syntax.sh -obj -dd > ../../tr_run_$tt.log 2>&1     -devel -nc -repl_mk do_make_syntax.sh -obj -dd > ../../tr_run_$tt.log 2>&1
127      echo '' >> ../../tr_run_$tt.log 2>&1
128    
129    testreport -MPI 2 -mth -of ../tools/build_options/linux_amd64_ifort11 \    testreport -MPI 2 -mth -of ../tools/build_options/linux_amd64_ifort11 \
130     -devel -q -command='mpirun -v -np TR_NPROC ./mitgcmuv' \     -devel -q -command='mpirun -v -np TR_NPROC ./mitgcmuv' \
131     -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1     -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1
132    
133    sed -n "/ email /,$ p" ../../tr_run_$tt.log    sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log
134    
135    #- test restart:    #- test restart:
136    echo '' >> ../../tr_run_$tt.log 2>&1    echo '' >> ../../tr_run_$tt.log 2>&1
# Line 130  case $tt in Line 143  case $tt in
143    
144    testreport -MPI 3 -ur4 -of ../tools/build_options/linux_amd64_ifort11 \    testreport -MPI 3 -ur4 -of ../tools/build_options/linux_amd64_ifort11 \
145     -devel -nc -repl_mk do_make_syntax.sh -obj -dd > ../../tr_run_$tt.log 2>&1     -devel -nc -repl_mk do_make_syntax.sh -obj -dd > ../../tr_run_$tt.log 2>&1
146      echo '' >> ../../tr_run_$tt.log 2>&1
147    
148    testreport -MPI 3 -ur4 -of ../tools/build_options/linux_amd64_ifort11 \    testreport -MPI 3 -ur4 -of ../tools/build_options/linux_amd64_ifort11 \
149     -devel -q -match 5 -command='mpirun -v -np TR_NPROC ./mitgcmuv' \     -devel -q -match 5 -command='mpirun -v -np TR_NPROC ./mitgcmuv' \
150     -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1     -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1
151    
152    sed -n "/ email /,$ p" ../../tr_run_$tt.log    sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log
153    
154    #- test restart:    #- test restart:
155    echo '' >> ../../tr_run_$tt.log 2>&1    echo '' >> ../../tr_run_$tt.log 2>&1
# Line 150  case $tt in Line 164  case $tt in
164     -devel -nc -command='mpirun -v -np TR_NPROC ./mitgcmuv_ad' \     -devel -nc -command='mpirun -v -np TR_NPROC ./mitgcmuv_ad' \
165     -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1     -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1
166    
167    sed -n "/ email /,$ p" ../../tr_run_$tt.log    sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log
168  ;;  ;;
169    
170  'gads')  'gads')
# Line 159  case $tt in Line 173  case $tt in
173    testreport -adm -of ../tools/build_options/linux_amd64_gfortran \    testreport -adm -of ../tools/build_options/linux_amd64_gfortran \
174     -devel -nc -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1     -devel -nc -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1
175    
176    sed -n "/ email /,$ p" ../../tr_run_$tt.log    sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log
177    ;;
178    
179    'gad4')
180      if test -e tr_out.txt ; then /bin/rm -f tr_out.sav ; mv tr_out.txt tr_out.sav ; fi
181    
182      testreport -adm -ur4 -match 5 -of ../tools/build_options/linux_amd64_gfortran \
183       -devel -nc -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1
184    
185      sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log
186  ;;  ;;
187    
188  'gmp2')  'gmp2')
# Line 172  case $tt in Line 195  case $tt in
195     -devel -nc -command='mpirun -v -np TR_NPROC ./mitgcmuv' \     -devel -nc -command='mpirun -v -np TR_NPROC ./mitgcmuv' \
196     -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1     -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1
197    
198    sed -n "/ email /,$ p" ../../tr_run_$tt.log    sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log
199    
200    #- test restart:    #- test restart:
201    echo '' >> ../../tr_run_$tt.log 2>&1    echo '' >> ../../tr_run_$tt.log 2>&1
# Line 187  case $tt in Line 210  case $tt in
210     -devel -nc -command='mpirun -v -np TR_NPROC ./mitgcmuv' \     -devel -nc -command='mpirun -v -np TR_NPROC ./mitgcmuv' \
211     -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1     -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1
212    
213    sed -n "/ email /,$ p" ../../tr_run_$tt.log    sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log
214    
215      #- test restart:
216      echo '' >> ../../tr_run_$tt.log 2>&1
217      ../tools/do_tst_2+2 -mpi -exe 'mpirun -v -np TR_NPROC ./mitgcmuv' \
218       -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1
219    ;;
220    
221    'gmp4')
222      if test -e tr_out.txt ; then /bin/rm -f tr_out.sav ; mv tr_out.txt tr_out.sav ; fi
223    
224      testreport -MPI 3 -ur4 -match 5 -of ../tools/build_options/linux_amd64_gfortran \
225       -devel -nc -command='mpirun -v -np TR_NPROC ./mitgcmuv' \
226       -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1
227    
228      sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log
229    
230    #- test restart:    #- test restart:
231    echo '' >> ../../tr_run_$tt.log 2>&1    echo '' >> ../../tr_run_$tt.log 2>&1
# Line 201  case $tt in Line 239  case $tt in
239    testreport -of ../tools/build_options/linux_amd64_gfortran \    testreport -of ../tools/build_options/linux_amd64_gfortran \
240     -devel -nc -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1     -devel -nc -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1
241    
242    sed -n "/ email /,$ p" ../../tr_run_$tt.log    sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log
243    
244      #- test restart:
245      echo '' >> ../../tr_run_$tt.log 2>&1
246      ../tools/do_tst_2+2 -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1
247    ;;
248    
249    'gfo4')
250      if test -e tr_out.txt ; then /bin/rm -f tr_out.sav ; mv tr_out.txt tr_out.sav ; fi
251    
252      testreport -ur4 -match 5 -of ../tools/build_options/linux_amd64_gfortran \
253       -devel -nc -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1
254    
255      sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log
256    
257    #- test restart:    #- test restart:
258    echo '' >> ../../tr_run_$tt.log 2>&1    echo '' >> ../../tr_run_$tt.log 2>&1
# Line 215  case $tt in Line 266  case $tt in
266     -skd 'fizhi-cs-32x32x40 fizhi-cs-aqualev20' \     -skd 'fizhi-cs-32x32x40 fizhi-cs-aqualev20' \
267     -nc -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1     -nc -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1
268    
269    sed -n "/ email /,$ p" ../../tr_run_$tt.log    sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log
270    
271    #- test restart:    #- test restart:
272    echo '' >> ../../tr_run_$tt.log 2>&1    echo '' >> ../../tr_run_$tt.log 2>&1

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.15

  ViewVC Help
Powered by ViewVC 1.1.22