| 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 | 
| 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$'` | 
| 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 | 
| 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[^=]*=\(.*\)'` |