| 102 | 
             ADJOINT= | 
             ADJOINT= | 
| 103 | 
             TANGLIN= | 
             TANGLIN= | 
| 104 | 
             RESTART=0 | 
             RESTART=0 | 
| 105 | 
  | 
             EXTRA= | 
| 106 | 
             FAST=0 | 
             FAST=0 | 
| 107 | 
             DVLP=0 | 
             DVLP=0 | 
| 108 | 
             MPI=0 | 
             MPI=0 | 
| 114 | 
                 comm=`grep 'TANGLIN=true' $dir/summary.txt 2>/dev/null` | 
                 comm=`grep 'TANGLIN=true' $dir/summary.txt 2>/dev/null` | 
| 115 | 
                 eval $comm | 
                 eval $comm | 
| 116 | 
                 RESTART=`grep -c 'test 2+2=4 summary' $dir/summary.txt` | 
                 RESTART=`grep -c 'test 2+2=4 summary' $dir/summary.txt` | 
| 117 | 
                 FAST=`grep -c "^run: .*testreport.* '*-fast'*" $dir/summary.txt` | 
                 comm=`grep '^run: .*testreport.* ' $dir/summary.txt` | 
| 118 | 
  | 
                 EXTRA=`echo "$comm" | grep " -*-tdir\>" | sed -e "s/^.* -*-tdir\>//" -e "s/ -.*$//"` | 
| 119 | 
  | 
                 if test "x$EXTRA" = x ; then | 
| 120 | 
  | 
                     EXTRA=`echo "$comm" | grep " -*-t\>" | sed -e "s/^.*-*-t\>//" -e "s/ -.*$//"` | 
| 121 | 
  | 
                 fi | 
| 122 | 
  | 
                 if test "x$EXTRA" = x ; then EXTRA=0 ; else | 
| 123 | 
  | 
                     #echo -n "EXTRA=$EXTRA" | 
| 124 | 
  | 
                     nn0=`echo $EXTRA | sed "s/ *' *//g" | wc -w` | 
| 125 | 
  | 
                     nn1=`echo $EXTRA | sed "s/ *' *//g" | tr ' ' '\n' | grep -c "\<monod_"` | 
| 126 | 
  | 
                     nn2=`echo $EXTRA | sed "s/ *' *//g" | tr ' ' '\n' | grep -c "\<darwin_"` | 
| 127 | 
  | 
                     EXTRA=1 | 
| 128 | 
  | 
                     if [ $nn1 -ge 2 ] ; then EXTRA=2 ; fi | 
| 129 | 
  | 
                     if [ $nn2 -ge 2 ] ; then EXTRA=3 ; fi | 
| 130 | 
  | 
                     #echo " : nn0=$nn0 ; nn1=$nn1 ; nn2=$nn2" | 
| 131 | 
  | 
                 fi | 
| 132 | 
  | 
                 FAST=`echo "$comm" | grep -c " -*-fast\>"` | 
| 133 | 
                 if test "x$FAST" = x0 ; then | 
                 if test "x$FAST" = x0 ; then | 
| 134 | 
                    FAST=`grep -c "^run: .*testreport.* '*-noieee'*" $dir/summary.txt` | 
                    FAST=`echo "$comm" | grep -c " '*-noieee'*"` | 
| 135 | 
                 fi | 
                 fi | 
| 136 | 
                 DVLP=`grep -c "^run: .*testreport.* '*-devel'*" $dir/summary.txt` | 
                 DVLP=`echo "$comm" | grep -c " -*-devel\>"` | 
| 137 | 
                 MPI=`grep -c "^run: .*testreport.* -mpi " $dir/summary.txt` | 
                 MPI=`echo "$comm" | grep -c " -*-mpi\>"` | 
| 138 | 
                 if test "x$MPI" = x0 ; then | 
                 if test "x$MPI" = x0 ; then | 
| 139 | 
                    MPI=`grep -c "^run: .*testreport.* -MPI " $dir/summary.txt` | 
                    MPI=`echo "$comm" | grep -c " -*-MPI\>"` | 
| 140 | 
                 fi | 
                 fi | 
| 141 | 
                 MTH=`grep -c "^run: .*testreport.* -mth" $dir/summary.txt` | 
                 MTH=`echo "$comm" | grep -c " -*-mth\>"` | 
| 142 | 
                 UR4=`grep -c "^run: .*testreport.* -use_r4 " $dir/summary.txt` | 
                 UR4=`echo "$comm" | grep -c " -*-use_r4\>"` | 
| 143 | 
                 if test "x$UR4" = x0 ; then | 
                 if test "x$UR4" = x0 ; then | 
| 144 | 
                    UR4=`grep -c "^run: .*testreport.* -ur4 " $dir/summary.txt` | 
                    UR4=`echo "$comm" | grep -c " -*-ur4\>"` | 
| 145 | 
                 fi | 
                 fi | 
| 146 | 
             fi | 
             fi | 
| 147 | 
             if test "x$ADJOINT" = xtrue ; then | 
             if test "x$ADJOINT" = xtrue ; then | 
| 148 | 
                 kind="adjoint" ; order='000' | 
                 kind="adjoint" ; order=0 | 
| 149 | 
             elif test "x$TANGLIN" = xtrue ; then | 
             elif test "x$TANGLIN" = xtrue ; then | 
| 150 | 
                 kind="tanglin" ; order='001' | 
                 kind="tanglin" ; order=1 | 
| 151 | 
             elif test "x$RESTART" = x0 ; then | 
             elif test "x$RESTART" = x0 ; then | 
| 152 | 
                 kind="forward" ; order='002' | 
                 kind="forward" ; order=2 | 
| 153 | 
             else | 
             else | 
| 154 | 
                 kind="restart" ; order='003' | 
                 kind="restart" ; order=3 | 
| 155 | 
             fi | 
             fi | 
| 156 | 
  | 
             order=`expr $order + 10 \* $EXTRA` | 
| 157 | 
  | 
             order=`printf '%3.3i' $order` | 
| 158 | 
             if test "x$UR4" = x1 ; then | 
             if test "x$UR4" = x1 ; then | 
| 159 | 
                 OPTFILE="${OPTFILE}.use_r4" | 
                 OPTFILE="${OPTFILE}.use_r4" | 
| 160 | 
             fi | 
             fi |