/[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.1 by jmc, Wed Aug 27 21:19:32 2008 UTC revision 1.4 by jmc, Thu Sep 11 16:10:00 2008 UTC
# Line 166  echo "     name     checked   comp    Di Line 166  echo "     name     checked   comp    Di
166    
167  if test "x$MACHINES" = "x_All_" ; then  if test "x$MACHINES" = "x_All_" ; then
168    MACHINES="faulks aces eddy bay meander lagoon hugo"    MACHINES="faulks aces eddy bay meander lagoon hugo"
169    MACHINES="$MACHINES columbia edvir rays sx8 xd1"    MACHINES="$MACHINES columbia edvir rays solasrv sx8 xd1"
170    MACHINES="$MACHINES beagle batsi starp"    MACHINES="$MACHINES beagle batsi starp"
171    
172    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`
# Line 198  for mname in $MACHINES ; do Line 198  for mname in $MACHINES ; do
198        if test $n == 2 ; then        if test $n == 2 ; then
199          num2=`expr $num1 \* $n`          num2=`expr $num1 \* $n`
200          if [ $num0 -lt $num2 ] ; then          if [ $num0 -lt $num2 ] ; then
201            dir_list=`( cd $INDIR ; ls -1 -t ../$PREV_P/*${mname}*/summary.txt | sed 's/\/summary.txt//' )`            dir_list=`( cd $INDIR ; ls -1 -t ../$PREV_P/*${mname}*/summary.txt 2> /dev/null | sed 's/\/summary.txt//' )`
202            #echo "dir_list='$dir_list'"            #echo "dir_list='$dir_list'"
203          fi          fi
204        else        else
# Line 237  for mname in $MACHINES ; do Line 237  for mname in $MACHINES ; do
237                  comm=`grep 'ADJOINT=true' $dir/summary.txt 2>/dev/null`                  comm=`grep 'ADJOINT=true' $dir/summary.txt 2>/dev/null`
238                  eval $comm                  eval $comm
239                  RESTART=`grep -c 'test 2+2=4 summary' $dir/summary.txt`                  RESTART=`grep -c 'test 2+2=4 summary' $dir/summary.txt`
240                  NOI3E=`grep -c "^run: .*testreport .* '-noieee' " $dir/summary.txt`                  NOI3E=`grep -c "^run: .*testreport .* '*-noieee'* " $dir/summary.txt`
241              fi              fi
242              if test "x$RESTART" = x0 ; then              if test "x$RESTART" = x0 ; then
243                  kind="forward"                  kind="forward"
# Line 301  for mname in $MACHINES ; do Line 301  for mname in $MACHINES ; do
301              pdir=`echo $pline | cut -d " " -f 5`              pdir=`echo $pline | cut -d " " -f 5`
302              outs="$INDIR/$sdir/summary.txt"              outs="$INDIR/$sdir/summary.txt"
303              sed -n "5,$ p" $outs | sed '/^[YN] [YN] [YN] [YN]/ s/ \. //g' \              sed -n "5,$ p" $outs | sed '/^[YN] [YN] [YN] [YN]/ s/ \. //g' \
304                                     | sed 's/ OPTFILE=.*\// OPTFILE=/g' \
305                                   | grep -v '^[A-S][a-t]* time:  ' > tmpfs                                   | grep -v '^[A-S][a-t]* time:  ' > tmpfs
306              outp="$INDIR/$pdir/summary.txt"              outp="$INDIR/$pdir/summary.txt"
307              sed -n "5,$ p" $outp | sed '/^[YN] [YN] [YN] [YN]/ s/ \. //g' \              sed -n "5,$ p" $outp | sed '/^[YN] [YN] [YN] [YN]/ s/ \. //g' \
308                                     | sed 's/ OPTFILE=.*\// OPTFILE=/g' \
309                                   | grep -v '^[A-S][a-t]* time:  ' > tmpfp                                   | grep -v '^[A-S][a-t]* time:  ' > tmpfp
310              echo -n "=== diff $sdir $pdir :" | tee -a $OUTPFIL              echo -n "=== diff $sdir $pdir :" | tee -a $OUTPFIL
311              diff tmpfs tmpfp > tmpdf              diff tmpfs tmpfp > tmpdf

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.4

  ViewVC Help
Powered by ViewVC 1.1.22