/[MITgcm]/mitgcm.org/scripts/check_outp
ViewVC logotype

Diff of /mitgcm.org/scripts/check_outp

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

revision 1.5 by jmc, Mon Feb 2 19:29:46 2009 UTC revision 1.15 by jmc, Tue Jul 7 23:32:02 2009 UTC
# Line 43  NBLDIFF=5 Line 43  NBLDIFF=5
43  ADDRESS='none'  ADDRESS='none'
44  dBug=f  dBug=f
45  sTime=`date`  sTime=`date`
46    #- to get case insensitive "ls" (and order of tested experiments)
47    export LC_ALL="en_US.UTF-8"
48    
49  #  Parse options  #  Parse options
50  ac_prev=  ac_prev=
# Line 176  echo "     name     checked   comp    Di Line 178  echo "     name     checked   comp    Di
178  ( cd $INDIR ; ls -1 -t */summary.txt | sed 's/\/summary.txt//' ) > ./dir_all  ( cd $INDIR ; ls -1 -t */summary.txt | sed 's/\/summary.txt//' ) > ./dir_all
179    
180  if test "x$MACHINES" = "x_All_" ; then  if test "x$MACHINES" = "x_All_" ; then
181    MACHINES="faulks aces eddy bay meander lagoon hugo"    MACHINES="faulks meander lagoon harbor dickens danton aces"
182    MACHINES="$MACHINES columbia edvir rays solasrv sx8 xd1"    MACHINES="$MACHINES beagle columbia edvir rays solasrv sx8 xd1"
183    MACHINES="$MACHINES beagle batsi starp"    MACHINES="$MACHINES bigred starp"
184    
185    MALL=`cat ./dir_all | sed -e 's|_| |g' | awk '{print $2}' | sort | uniq`    MALL=`cat ./dir_all | sed -e 's|_| |g' | awk '{print $2}' | sort | uniq`
186    for madd in $MALL ; do    for madd in $MALL ; do
# Line 244  for mname in $MACHINES ; do Line 246  for mname in $MACHINES ; do
246              ADJOINT=              ADJOINT=
247              RESTART=0              RESTART=0
248              NOI3E=0              NOI3E=0
249                MTH=0
250              if test -r $dir/summary.txt ; then              if test -r $dir/summary.txt ; then
251                  comm=`grep 'ADJOINT=true' $dir/summary.txt 2>/dev/null`                  comm=`grep 'ADJOINT=true' $dir/summary.txt 2>/dev/null`
252                  eval $comm                  eval $comm
253                  RESTART=`grep -c 'test 2+2=4 summary' $dir/summary.txt`                  RESTART=`grep -c 'test 2+2=4 summary' $dir/summary.txt`
254                  NOI3E=`grep -c "^run: .*testreport .* '*-noieee'* " $dir/summary.txt`                  NOI3E=`grep -c "^run: .*testreport.* '*-noieee'*" $dir/summary.txt`
255                    MTH=`grep -c "^run: .*testreport.* -mth" $dir/summary.txt`
256              fi              fi
257              if test "x$RESTART" = x0 ; then              if test "x$RESTART" = x0 ; then
258                  kind="forward"                  kind="forward"
# Line 256  for mname in $MACHINES ; do Line 260  for mname in $MACHINES ; do
260              else              else
261                  kind="restart"                  kind="restart"
262              fi              fi
263                if test "x$MTH" = x1 ; then
264                    yy=`echo $OPTFILE | grep -c '+mth$'`
265                    if test $yy = 0 ; then OPTFILE="${OPTFILE}+mth" ; fi
266                fi
267              if test "x$NOI3E" = x1 ; then              if test "x$NOI3E" = x1 ; then
268                  OPTFILE="${OPTFILE}.noieee"                  OPTFILE="${OPTFILE}.noieee"
269              fi              fi
# Line 280  for mname in $MACHINES ; do Line 288  for mname in $MACHINES ; do
288                  cat ./slist | tee -a $OUTPFIL                  cat ./slist | tee -a $OUTPFIL
289            fi            fi
290            echo   ".... previous list (n=$n):" | tee -a $OUTPFIL            echo   ".... previous list (n=$n):" | tee -a $OUTPFIL
291                  cat ./plist | tee -a $OUTPFIL                  cat ./plist | tee -a $OUTPFIL | head -20
292          fi          fi
293    
294        fi        fi
# Line 302  for mname in $MACHINES ; do Line 310  for mname in $MACHINES ; do
310            num=`grep -c "^$key" ./plist`            num=`grep -c "^$key" ./plist`
311            #- discard unsafe test:            #- discard unsafe test:
312            dd=`echo $optf | grep -c 'gfortran.*mth'`            dd=`echo $optf | grep -c 'gfortran.*mth'`
313            if [ $dd -ge 1 ] ; then num=-1 ; fi            #if test $mname = 'lagoon' -a $dd = 1 ; then num=-1 ; fi
314              #if test $mname = 'harbor' -a $dd = 1 ; then num=-1 ; fi
315              #if test $mname = 'aces' -a $optf = 'linux_ia32_open64' ; then num=-1 ; fi
316              #if test $mname = 'aces' -a $optf = 'linux_ia32_g95' ; then num=-1 ; fi
317            if test $num -gt 0 ; then            if test $num -gt 0 ; then
318              pline=`grep "^$key " ./plist | head -1`              pline=`grep "^$key " ./plist | head -1`
319              if test $dBug = 't' ; then              if test $dBug = 't' ; then
# Line 318  for mname in $MACHINES ; do Line 329  for mname in $MACHINES ; do
329              sed -n "5,$ p" $outp | sed '/^[YN] [YN] [YN] [YN]/ s/ \. //g' \              sed -n "5,$ p" $outp | sed '/^[YN] [YN] [YN] [YN]/ s/ \. //g' \
330                                   | sed 's/ OPTFILE=.*\// OPTFILE=/g' \                                   | sed 's/ OPTFILE=.*\// OPTFILE=/g' \
331                                   | grep -v '^[A-S][a-t]* time:  ' > tmpfp                                   | grep -v '^[A-S][a-t]* time:  ' > tmpfp
332                #-- re-order list of exp (according to local "sort" order)
333                listD=`grep '^[YN] [YN] [YN] [YN]' tmpfs \
334                     | sed 's/^[YN] .*pass //' | sed 's/^[YN] .*FAIL //' \
335                     | sed 's/^[YN] .*N\/O  //' | sort`
336                for xx in $listD
337                do
338                    sed "/ $xx\$/d" tmpfs > tmpfn
339                    sed -n "/ $xx\$/p" tmpfs >> tmpfn
340                    mv tmpfn tmpfs
341                done
342                listD=`grep '^[YN] [YN] [YN] [YN]' tmpfp \
343                     | sed 's/^[YN] .*pass //' | sed 's/^[YN] .*FAIL //' \
344                     | sed 's/^[YN] .*N\/O  //' | sort`
345                for xx in $listD
346                do
347                    sed "/ $xx\$/d" tmpfp > tmpfn
348                    sed -n "/ $xx\$/p" tmpfp >> tmpfn
349                    mv tmpfn tmpfp
350                done
351              echo -n "=== diff $sdir $pdir :" | tee -a $OUTPFIL              echo -n "=== diff $sdir $pdir :" | tee -a $OUTPFIL
352              diff tmpfs tmpfp > tmpdf              diff tmpfs tmpfp > tmpdf
353              yy=$?              yy=$?

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

  ViewVC Help
Powered by ViewVC 1.1.22