/[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.28 by jmc, Wed Jun 29 14:00:59 2011 UTC revision 1.32 by jmc, Thu Aug 16 02:48:24 2012 UTC
# Line 6  Line 6 
6  #  the latest output with the previous one (from the same platform with  #  the latest output with the previous one (from the same platform with
7  #    same optfile)  #    same optfile)
8    
   
9  usage()  usage()
10  {  {
11      echo      echo
# Line 101  make_resdir_list() Line 100  make_resdir_list()
100              fi              fi
101    
102              ADJOINT=              ADJOINT=
103                TANGLIN=
104              RESTART=0              RESTART=0
105              FAST=0              FAST=0
106              DVLP=0              DVLP=0
107                MPI=0
108              MTH=0              MTH=0
109                UR4=0
110              if test -r $dir/summary.txt ; then              if test -r $dir/summary.txt ; then
111                  comm=`grep 'ADJOINT=true' $dir/summary.txt 2>/dev/null`                  comm=`grep 'ADJOINT=true' $dir/summary.txt 2>/dev/null`
112                  eval $comm                  eval $comm
113                    comm=`grep 'TANGLIN=true' $dir/summary.txt 2>/dev/null`
114                    eval $comm
115                  RESTART=`grep -c 'test 2+2=4 summary' $dir/summary.txt`                  RESTART=`grep -c 'test 2+2=4 summary' $dir/summary.txt`
116                  FAST=`grep -c "^run: .*testreport.* '*-fast'*" $dir/summary.txt`                  FAST=`grep -c "^run: .*testreport.* '*-fast'*" $dir/summary.txt`
117                  if test "x$FAST" = x0 ; then                  if test "x$FAST" = x0 ; then
118                     FAST=`grep -c "^run: .*testreport.* '*-noieee'*" $dir/summary.txt`                     FAST=`grep -c "^run: .*testreport.* '*-noieee'*" $dir/summary.txt`
119                  fi                  fi
120                  DVLP=`grep -c "^run: .*testreport.* '*-devel'*" $dir/summary.txt`                  DVLP=`grep -c "^run: .*testreport.* '*-devel'*" $dir/summary.txt`
121                    MPI=`grep -c "^run: .*testreport.* -mpi " $dir/summary.txt`
122                    if test "x$MPI" = x0 ; then
123                       MPI=`grep -c "^run: .*testreport.* -MPI " $dir/summary.txt`
124                    fi
125                  MTH=`grep -c "^run: .*testreport.* -mth" $dir/summary.txt`                  MTH=`grep -c "^run: .*testreport.* -mth" $dir/summary.txt`
126                    UR4=`grep -c "^run: .*testreport.* -use_r4 " $dir/summary.txt`
127                    if test "x$UR4" = x0 ; then
128                       UR4=`grep -c "^run: .*testreport.* -ur4 " $dir/summary.txt`
129                    fi
130              fi              fi
131              if test "x$RESTART" = x0 ; then              if test "x$ADJOINT" = xtrue ; then
132                  kind="forward"                  kind="adjoint" ; order='000'
133                  test "x$ADJOINT" = xtrue  &&  kind="adjoint"              elif test "x$TANGLIN" = xtrue ; then
134                    kind="tanglin" ; order='001'
135                elif test "x$RESTART" = x0 ; then
136                    kind="forward" ; order='002'
137              else              else
138                  kind="restart"                  kind="restart" ; order='003'
139                fi
140                if test "x$UR4" = x1 ; then
141                    OPTFILE="${OPTFILE}.use_r4"
142                fi
143                if test "x$MPI" = x1 ; then
144                    yy=`echo $OPTFILE | grep -c '+mpi'`
145                    if test $yy = 0 ; then OPTFILE="${OPTFILE}+mpi" ; fi
146              fi              fi
147              if test "x$MTH" = x1 ; then              if test "x$MTH" = x1 ; then
148                  yy=`echo $OPTFILE | grep -c '+mth$'`                  yy=`echo $OPTFILE | grep -c '+mth$'`
# Line 136  make_resdir_list() Line 158  make_resdir_list()
158              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]$//'`
159              day=`echo $ttt | sed -e 's|_| |g' |awk '{print $NF}'`              day=`echo $ttt | sed -e 's|_| |g' |awk '{print $NF}'`
160    
161              if [ $day -lt $BEFORE ] ; then              if [ $day -lt $BEFORE ] ; then
162                  echo "$OPTFILE$kind $day $OPTFILE $kind $i" >> ./plist                  echo "$OPTFILE$order $day $OPTFILE $kind $i" >> ./plist
163              elif [ $day -ge $FIRSTDAY -a $day -le $LASTDAY ] ; then              elif [ $day -ge $FIRSTDAY -a $day -le $LASTDAY ] ; then
164                  echo "$OPTFILE$kind $day $OPTFILE $kind $i" >> ./slist                  echo "$OPTFILE$order $day $OPTFILE $kind $i" >> ./slist
165              else              else
166                  if test $dBug = 't' ; then                  if test $dBug = 't' ; then
167                     echo "discard day='$day' from: $i" | tee -a $OUTPFIL                     echo "discard day='$day' from: $i" | tee -a $OUTPFIL
# Line 185  for ac_option ; do Line 207  for ac_option ; do
207    
208      # If the previous option needs an argument, assign it.      # If the previous option needs an argument, assign it.
209      if test -n "$ac_prev"; then      if test -n "$ac_prev"; then
210          eval "$ac_prev=\$ac_option"          eval "$ac_prev=\$ac_option"
211          ac_prev=          ac_prev=
212          continue          continue
213      fi      fi
214    
215      ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`      ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
# Line 304  echo "     name     checked   comp    Di Line 326  echo "     name     checked   comp    Di
326  ( 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
327    
328  if test "x$MACHINES" = "x_All_" ; then  if test "x$MACHINES" = "x_All_" ; then
329    MACHINES="faulks meander aces.jmc aces.ce107 baudelaire dickens danton beagle harbor"    MACHINES="faulks meander aces- acesgrid baudelaire dickens danton beagle harbor"
330    MACHINES="$MACHINES pleiades iblade rays solasrv sx8"    MACHINES="$MACHINES pleiades iblade rays solasrv sx8"
331    MACHINES="$MACHINES trane dodongo dokdo stomp bigred"    MACHINES="$MACHINES trane dodongo dokdo stomp bigred"
332    
# Line 325  fi Line 347  fi
347    
348  for pname in $MACHINES ; do  for pname in $MACHINES ; do
349    
350        sname=`echo $pname | sed 's/-$//'`
351      mname=`echo $pname | sed 's/\./ /g' | awk '{print $1}'`      mname=`echo $pname | sed 's/\./ /g' | awk '{print $1}'`
352      sUser=      sUser=
353      if test $mname != $pname ; then      if test $mname != $pname ; then
# Line 370  for pname in $MACHINES ; do Line 393  for pname in $MACHINES ; do
393            #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
394            #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
395            dd=`echo $optf | grep -c 'bigred.*noieee'`            dd=`echo $optf | grep -c 'bigred.*noieee'`
396            if test $mname = 'bigred' -a $dd = 1 ; then num=-1 ; fi            #if test $mname = 'bigred' -a $dd = 1 ; then num=-1 ; fi
397            if test $num -lt 0 ; then            if test $num -lt 0 ; then
398              echo "  discard $sdir : $type , of='$optf'" | tee -a $OUTPFIL              echo "  discard $sdir : $type , of='$optf'" | tee -a $OUTPFIL
399              cmis=`expr $cmis + 1`              cmis=`expr $cmis + 1`
# Line 451  for pname in $MACHINES ; do Line 474  for pname in $MACHINES ; do
474            fi            fi
475          done          done
476          if [ $cmis -gt 0 ] ; then tmis='(-'$cmis')' ; else tmis='(--)' ; fi          if [ $cmis -gt 0 ] ; then tmis='(-'$cmis')' ; else tmis='(--)' ; fi
477          printf '%11s :  %3i      %4s   %3i  ' $pname $ctot $tmis $cdif >> $OUTPSUM          printf '%11s :  %3i      %4s   %3i  ' $sname $ctot $tmis $cdif >> $OUTPSUM
478          if [ $cdif -gt 0 ] ; then          if [ $cdif -gt 0 ] ; then
479            echo "   $clin" >> $OUTPSUM            echo "   $clin" >> $OUTPSUM
480          else echo "" >> $OUTPSUM ; fi          else echo "" >> $OUTPSUM ; fi

Legend:
Removed from v.1.28  
changed lines
  Added in v.1.32

  ViewVC Help
Powered by ViewVC 1.1.22