/[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.30 by jmc, Fri Aug 19 20:38:19 2011 UTC
# Line 104  make_resdir_list() Line 104  make_resdir_list()
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
# Line 114  make_resdir_list() Line 116  make_resdir_list()
116                     FAST=`grep -c "^run: .*testreport.* '*-noieee'*" $dir/summary.txt`                     FAST=`grep -c "^run: .*testreport.* '*-noieee'*" $dir/summary.txt`
117                  fi                  fi
118                  DVLP=`grep -c "^run: .*testreport.* '*-devel'*" $dir/summary.txt`                  DVLP=`grep -c "^run: .*testreport.* '*-devel'*" $dir/summary.txt`
119                    MPI=`grep -c "^run: .*testreport.* -mpi " $dir/summary.txt`
120                    if test "x$MPI" = x0 ; then
121                       MPI=`grep -c "^run: .*testreport.* -MPI " $dir/summary.txt`
122                    fi
123                  MTH=`grep -c "^run: .*testreport.* -mth" $dir/summary.txt`                  MTH=`grep -c "^run: .*testreport.* -mth" $dir/summary.txt`
124                    UR4=`grep -c "^run: .*testreport.* -use_r4 " $dir/summary.txt`
125                    if test "x$UR4" = x0 ; then
126                       UR4=`grep -c "^run: .*testreport.* -ur4 " $dir/summary.txt`
127                    fi
128              fi              fi
129              if test "x$RESTART" = x0 ; then              if test "x$RESTART" = x0 ; then
130                  kind="forward"                  kind="forward"
# Line 122  make_resdir_list() Line 132  make_resdir_list()
132              else              else
133                  kind="restart"                  kind="restart"
134              fi              fi
135                if test "x$UR4" = x1 ; then
136                    OPTFILE="${OPTFILE}.use_r4"
137                fi
138                if test "x$MPI" = x1 ; then
139                    yy=`echo $OPTFILE | grep -c '+mpi'`
140                    if test $yy = 0 ; then OPTFILE="${OPTFILE}+mpi" ; fi
141                fi
142              if test "x$MTH" = x1 ; then              if test "x$MTH" = x1 ; then
143                  yy=`echo $OPTFILE | grep -c '+mth$'`                  yy=`echo $OPTFILE | grep -c '+mth$'`
144                  if test $yy = 0 ; then OPTFILE="${OPTFILE}+mth" ; fi                  if test $yy = 0 ; then OPTFILE="${OPTFILE}+mth" ; fi
# Line 304  echo "     name     checked   comp    Di Line 321  echo "     name     checked   comp    Di
321  ( 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
322    
323  if test "x$MACHINES" = "x_All_" ; then  if test "x$MACHINES" = "x_All_" ; then
324    MACHINES="faulks meander aces.jmc aces.ce107 baudelaire dickens danton beagle harbor"    MACHINES="faulks meander aces- acesgrid baudelaire dickens danton beagle harbor"
325    MACHINES="$MACHINES pleiades iblade rays solasrv sx8"    MACHINES="$MACHINES pleiades iblade rays solasrv sx8"
326    MACHINES="$MACHINES trane dodongo dokdo stomp bigred"    MACHINES="$MACHINES trane dodongo dokdo stomp bigred"
327    
# Line 325  fi Line 342  fi
342    
343  for pname in $MACHINES ; do  for pname in $MACHINES ; do
344    
345        sname=`echo $pname | sed 's/-$//'`
346      mname=`echo $pname | sed 's/\./ /g' | awk '{print $1}'`      mname=`echo $pname | sed 's/\./ /g' | awk '{print $1}'`
347      sUser=      sUser=
348      if test $mname != $pname ; then      if test $mname != $pname ; then
# Line 370  for pname in $MACHINES ; do Line 388  for pname in $MACHINES ; do
388            #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
389            #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
390            dd=`echo $optf | grep -c 'bigred.*noieee'`            dd=`echo $optf | grep -c 'bigred.*noieee'`
391            if test $mname = 'bigred' -a $dd = 1 ; then num=-1 ; fi            #if test $mname = 'bigred' -a $dd = 1 ; then num=-1 ; fi
392            if test $num -lt 0 ; then            if test $num -lt 0 ; then
393              echo "  discard $sdir : $type , of='$optf'" | tee -a $OUTPFIL              echo "  discard $sdir : $type , of='$optf'" | tee -a $OUTPFIL
394              cmis=`expr $cmis + 1`              cmis=`expr $cmis + 1`
# Line 451  for pname in $MACHINES ; do Line 469  for pname in $MACHINES ; do
469            fi            fi
470          done          done
471          if [ $cmis -gt 0 ] ; then tmis='(-'$cmis')' ; else tmis='(--)' ; fi          if [ $cmis -gt 0 ] ; then tmis='(-'$cmis')' ; else tmis='(--)' ; fi
472          printf '%11s :  %3i      %4s   %3i  ' $pname $ctot $tmis $cdif >> $OUTPSUM          printf '%11s :  %3i      %4s   %3i  ' $sname $ctot $tmis $cdif >> $OUTPSUM
473          if [ $cdif -gt 0 ] ; then          if [ $cdif -gt 0 ] ; then
474            echo "   $clin" >> $OUTPSUM            echo "   $clin" >> $OUTPSUM
475          else echo "" >> $OUTPSUM ; fi          else echo "" >> $OUTPSUM ; fi

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

  ViewVC Help
Powered by ViewVC 1.1.22