/[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.14 by jmc, Thu Jan 3 19:51:56 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    else    else
17      tst_list=$*      tst_list=$*
18    fi    fi
19  fi  fi
20      echo "run: \""`basename $0` $*"\" on:" `date`
21      echo " tst_list='$tst_list'"
22    
23  #-- for now, cannot mix ifort/gfortran tests:  #-- for now, cannot mix ifort/gfortran tests:
24  gfort=1  gfort=1
# Line 33  if [ $gfort -eq 0 ] ; then Line 35  if [ $gfort -eq 0 ] ; then
35    #source ~jmc/bin/intel_v11.sh    #source ~jmc/bin/intel_v11.sh
36     echo 'source ~jmc/bin/intel_v12.sh'     echo 'source ~jmc/bin/intel_v12.sh'
37     source ~jmc/bin/intel_v12.sh     source ~jmc/bin/intel_v12.sh
    export GFORTRAN_OPTFILE=f  
38  fi  fi
39  if [ $gfort -eq 2 ] ; then  if [ $gfort -eq 2 ] ; then
40     echo 'source ~jmc/bin/openmpi.sh'     echo 'source ~jmc/bin/openmpi.sh'
41     source ~jmc/bin/openmpi.sh     source ~jmc/bin/openmpi.sh
    export GFORTRAN_OPTFILE=t  
42  fi  fi
43    
44  #--------------------------------------------------------------------  #--------------------------------------------------------------------
# Line 57  else Line 57  else
57    ( cd MITgcm_$tt/verification ; testreport -clean >> ../../tr_clean_$tt.log 2>&1 )    ( cd MITgcm_$tt/verification ; testreport -clean >> ../../tr_clean_$tt.log 2>&1 )
58  fi  fi
59    set +x    set +x
60      if [ $gfort -eq 0 ] ; then
61        echo ' remove all Makefile_syntax and do "cvs update -P -d"' >> tr_clean_$tt.log
62        ( cd MITgcm_$tt/verification ; rm -f */build/Makefile_syntax )
63      else
64        echo ' run "cvs update -P -d"'  >> tr_clean_$tt.log
65      fi
66    echo ""    echo ""
67    
68    echo "=========================================================================="    echo "=========================================================================="
# Line 81  case $tt in Line 87  case $tt in
87    
88    testreport -MPI 3 -adm -of ../tools/build_options/linux_amd64_ifort11 \    testreport -MPI 3 -adm -of ../tools/build_options/linux_amd64_ifort11 \
89     -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
90      echo '' >> ../../tr_run_$tt.log 2>&1
91    
92    testreport -MPI 3 -adm -of ../tools/build_options/linux_amd64_ifort11 \    testreport -MPI 3 -adm -of ../tools/build_options/linux_amd64_ifort11 \
93     -devel -q -command='mpirun -v -np TR_NPROC ./mitgcmuv_ad' \     -devel -q -command='mpirun -v -np TR_NPROC ./mitgcmuv_ad' \
94     -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1     -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1
95    
96    #unset echo    sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log
   sed -n "/ email /,$ p" ../../tr_run_$tt.log  
97  ;;  ;;
98    
99  'iad4' )  'iad4' )
# Line 95  case $tt in Line 101  case $tt in
101    
102    testreport -MPI 3 -ur4 -adm -of ../tools/build_options/linux_amd64_ifort11 \    testreport -MPI 3 -ur4 -adm -of ../tools/build_options/linux_amd64_ifort11 \
103     -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
104      echo '' >> ../../tr_run_$tt.log 2>&1
105    
106    testreport -MPI 3 -ur4 -adm -of ../tools/build_options/linux_amd64_ifort11 \    testreport -MPI 3 -ur4 -adm -of ../tools/build_options/linux_amd64_ifort11 \
107     -devel -q -match 5 -command='mpirun -v -np TR_NPROC ./mitgcmuv_ad' \     -devel -q -match 5 -command='mpirun -v -np TR_NPROC ./mitgcmuv_ad' \
108     -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1     -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1
109    
110    #unset echo    sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log
   sed -n "/ email /,$ p" ../../tr_run_$tt.log  
111  ;;  ;;
112    
113  'imp2')  'imp2')
# Line 112  case $tt in Line 118  case $tt in
118    
119    testreport -MPI 2 -mth -of ../tools/build_options/linux_amd64_ifort11 \    testreport -MPI 2 -mth -of ../tools/build_options/linux_amd64_ifort11 \
120     -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
121      echo '' >> ../../tr_run_$tt.log 2>&1
122    
123    testreport -MPI 2 -mth -of ../tools/build_options/linux_amd64_ifort11 \    testreport -MPI 2 -mth -of ../tools/build_options/linux_amd64_ifort11 \
124     -devel -q -command='mpirun -v -np TR_NPROC ./mitgcmuv' \     -devel -q -command='mpirun -v -np TR_NPROC ./mitgcmuv' \
125     -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1     -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1
126    
127    sed -n "/ email /,$ p" ../../tr_run_$tt.log    sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log
128    
129    #- test restart:    #- test restart:
130    echo '' >> ../../tr_run_$tt.log 2>&1    echo '' >> ../../tr_run_$tt.log 2>&1
# Line 130  case $tt in Line 137  case $tt in
137    
138    testreport -MPI 3 -ur4 -of ../tools/build_options/linux_amd64_ifort11 \    testreport -MPI 3 -ur4 -of ../tools/build_options/linux_amd64_ifort11 \
139     -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
140      echo '' >> ../../tr_run_$tt.log 2>&1
141    
142    testreport -MPI 3 -ur4 -of ../tools/build_options/linux_amd64_ifort11 \    testreport -MPI 3 -ur4 -of ../tools/build_options/linux_amd64_ifort11 \
143     -devel -q -match 5 -command='mpirun -v -np TR_NPROC ./mitgcmuv' \     -devel -q -match 5 -command='mpirun -v -np TR_NPROC ./mitgcmuv' \
144     -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1     -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1
145    
146    sed -n "/ email /,$ p" ../../tr_run_$tt.log    sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log
147    
148    #- test restart:    #- test restart:
149    echo '' >> ../../tr_run_$tt.log 2>&1    echo '' >> ../../tr_run_$tt.log 2>&1
# Line 150  case $tt in Line 158  case $tt in
158     -devel -nc -command='mpirun -v -np TR_NPROC ./mitgcmuv_ad' \     -devel -nc -command='mpirun -v -np TR_NPROC ./mitgcmuv_ad' \
159     -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1     -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1
160    
161    sed -n "/ email /,$ p" ../../tr_run_$tt.log    sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log
162  ;;  ;;
163    
164  'gads')  'gads')
# Line 159  case $tt in Line 167  case $tt in
167    testreport -adm -of ../tools/build_options/linux_amd64_gfortran \    testreport -adm -of ../tools/build_options/linux_amd64_gfortran \
168     -devel -nc -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1     -devel -nc -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1
169    
170    sed -n "/ email /,$ p" ../../tr_run_$tt.log    sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log
171  ;;  ;;
172    
173  'gmp2')  'gmp2')
# Line 172  case $tt in Line 180  case $tt in
180     -devel -nc -command='mpirun -v -np TR_NPROC ./mitgcmuv' \     -devel -nc -command='mpirun -v -np TR_NPROC ./mitgcmuv' \
181     -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1     -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1
182    
183    sed -n "/ email /,$ p" ../../tr_run_$tt.log    sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log
184    
185    #- test restart:    #- test restart:
186    echo '' >> ../../tr_run_$tt.log 2>&1    echo '' >> ../../tr_run_$tt.log 2>&1
# Line 187  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 201  case $tt in Line 209  case $tt in
209    testreport -of ../tools/build_options/linux_amd64_gfortran \    testreport -of ../tools/build_options/linux_amd64_gfortran \
210     -devel -nc -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1     -devel -nc -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1
211    
212    sed -n "/ email /,$ p" ../../tr_run_$tt.log    sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log
213    
214    #- test restart:    #- test restart:
215    echo '' >> ../../tr_run_$tt.log 2>&1    echo '' >> ../../tr_run_$tt.log 2>&1
# Line 215  case $tt in Line 223  case $tt in
223     -skd 'fizhi-cs-32x32x40 fizhi-cs-aqualev20' \     -skd 'fizhi-cs-32x32x40 fizhi-cs-aqualev20' \
224     -nc -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1     -nc -a jmc@mitgcm.org >> ../../tr_run_$tt.log 2>&1
225    
226    sed -n "/ email /,$ p" ../../tr_run_$tt.log    sed -n "/ email /,/^======== End of testreport / p" ../../tr_run_$tt.log
227    
228    #- test restart:    #- test restart:
229    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.14

  ViewVC Help
Powered by ViewVC 1.1.22