/[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.27 by jmc, Fri Jan 21 19:45:01 2011 UTC revision 1.29 by jmc, Tue Aug 9 16:40:29 2011 UTC
# Line 102  make_resdir_list() Line 102  make_resdir_list()
102    
103              ADJOINT=              ADJOINT=
104              RESTART=0              RESTART=0
105              NOI3E=0              FAST=0
106                DVLP=0
107              MTH=0              MTH=0
108              if test -r $dir/summary.txt ; then              if test -r $dir/summary.txt ; then
109                  comm=`grep 'ADJOINT=true' $dir/summary.txt 2>/dev/null`                  comm=`grep 'ADJOINT=true' $dir/summary.txt 2>/dev/null`
110                  eval $comm                  eval $comm
111                  RESTART=`grep -c 'test 2+2=4 summary' $dir/summary.txt`                  RESTART=`grep -c 'test 2+2=4 summary' $dir/summary.txt`
112                  NOI3E=`grep -c "^run: .*testreport.* '*-noieee'*" $dir/summary.txt`                  FAST=`grep -c "^run: .*testreport.* '*-fast'*" $dir/summary.txt`
113                    if test "x$FAST" = x0 ; then
114                       FAST=`grep -c "^run: .*testreport.* '*-noieee'*" $dir/summary.txt`
115                    fi
116                    DVLP=`grep -c "^run: .*testreport.* '*-devel'*" $dir/summary.txt`
117                  MTH=`grep -c "^run: .*testreport.* -mth" $dir/summary.txt`                  MTH=`grep -c "^run: .*testreport.* -mth" $dir/summary.txt`
118              fi              fi
119              if test "x$RESTART" = x0 ; then              if test "x$RESTART" = x0 ; then
# Line 121  make_resdir_list() Line 126  make_resdir_list()
126                  yy=`echo $OPTFILE | grep -c '+mth$'`                  yy=`echo $OPTFILE | grep -c '+mth$'`
127                  if test $yy = 0 ; then OPTFILE="${OPTFILE}+mth" ; fi                  if test $yy = 0 ; then OPTFILE="${OPTFILE}+mth" ; fi
128              fi              fi
129              if test "x$NOI3E" = x1 ; then              if test "x$FAST" = x1 ; then
130                  OPTFILE="${OPTFILE}.noieee"                  OPTFILE="${OPTFILE}.fast"
131                fi
132                if test "x$DVLP" = x1 ; then
133                    OPTFILE="${OPTFILE}.dvlp"
134              fi              fi
135              day=`echo $i   | sed -e 's/_[0-9]$//' | sed -e 's/_[0-9][0-9]$//'`              day=`echo $i   | sed -e 's/_[0-9]$//' | sed -e 's/_[0-9][0-9]$//'`
136              ttt=`echo $day | sed -e 's/_[0-9]$//' | sed -e 's/_[0-9][0-9]$//'`              ttt=`echo $day | sed -e 's/_[0-9]$//' | sed -e 's/_[0-9][0-9]$//'`
# Line 296  echo "     name     checked   comp    Di Line 304  echo "     name     checked   comp    Di
304  ( 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
305    
306  if test "x$MACHINES" = "x_All_" ; then  if test "x$MACHINES" = "x_All_" ; then
307    MACHINES="faulks meander aces.jmc aces.ce107 baudelaire dickens danton beagle harbor"    MACHINES="faulks meander aces- acesgrid baudelaire dickens danton beagle harbor"
308    MACHINES="$MACHINES pleiades iblade rays solasrv sx8"    MACHINES="$MACHINES pleiades iblade rays solasrv sx8"
309    MACHINES="$MACHINES trane dodongo dokdo stomp bigred"    MACHINES="$MACHINES trane dodongo dokdo stomp bigred"
310    
# Line 317  fi Line 325  fi
325    
326  for pname in $MACHINES ; do  for pname in $MACHINES ; do
327    
328        sname=`echo $pname | sed 's/-$//'`
329      mname=`echo $pname | sed 's/\./ /g' | awk '{print $1}'`      mname=`echo $pname | sed 's/\./ /g' | awk '{print $1}'`
330      sUser=      sUser=
331      if test $mname != $pname ; then      if test $mname != $pname ; then
# Line 362  for pname in $MACHINES ; do Line 371  for pname in $MACHINES ; do
371            #if test $mname = 'aces' -a $optf = 'linux_ia32_open64' ; then num=-1 ; fi            #if test $mname = 'aces' -a $optf = 'linux_ia32_open64' ; then num=-1 ; fi
372            #if test $mname = 'aces' -a $optf = 'linux_ia32_g95' ; then num=-1 ; fi            #if test $mname = 'aces' -a $optf = 'linux_ia32_g95' ; then num=-1 ; fi
373            dd=`echo $optf | grep -c 'bigred.*noieee'`            dd=`echo $optf | grep -c 'bigred.*noieee'`
374            if test $mname = 'bigred' -a $dd = 1 ; then num=-1 ; fi            #if test $mname = 'bigred' -a $dd = 1 ; then num=-1 ; fi
375            if test $num -lt 0 ; then            if test $num -lt 0 ; then
376              echo "  discard $sdir : $type , of='$optf'" | tee -a $OUTPFIL              echo "  discard $sdir : $type , of='$optf'" | tee -a $OUTPFIL
377              cmis=`expr $cmis + 1`              cmis=`expr $cmis + 1`
# Line 443  for pname in $MACHINES ; do Line 452  for pname in $MACHINES ; do
452            fi            fi
453          done          done
454          if [ $cmis -gt 0 ] ; then tmis='(-'$cmis')' ; else tmis='(--)' ; fi          if [ $cmis -gt 0 ] ; then tmis='(-'$cmis')' ; else tmis='(--)' ; fi
455          printf '%11s :  %3i      %4s   %3i  ' $pname $ctot $tmis $cdif >> $OUTPSUM          printf '%11s :  %3i      %4s   %3i  ' $sname $ctot $tmis $cdif >> $OUTPSUM
456          if [ $cdif -gt 0 ] ; then          if [ $cdif -gt 0 ] ; then
457            echo "   $clin" >> $OUTPSUM            echo "   $clin" >> $OUTPSUM
458          else echo "" >> $OUTPSUM ; fi          else echo "" >> $OUTPSUM ; fi

Legend:
Removed from v.1.27  
changed lines
  Added in v.1.29

  ViewVC Help
Powered by ViewVC 1.1.22