| 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 |
| 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$ADJOINT" = xtrue ; then |
| 130 |
kind="forward" |
kind="adjoint" ; order='000' |
| 131 |
test "x$ADJOINT" = xtrue && kind="adjoint" |
elif test "x$RESTART" = x0 ; then |
| 132 |
|
kind="forward" ; order='001' |
| 133 |
else |
else |
| 134 |
kind="restart" |
kind="restart" ; order='002' |
| 135 |
|
fi |
| 136 |
|
if test "x$UR4" = x1 ; then |
| 137 |
|
OPTFILE="${OPTFILE}.use_r4" |
| 138 |
|
fi |
| 139 |
|
if test "x$MPI" = x1 ; then |
| 140 |
|
yy=`echo $OPTFILE | grep -c '+mpi'` |
| 141 |
|
if test $yy = 0 ; then OPTFILE="${OPTFILE}+mpi" ; fi |
| 142 |
fi |
fi |
| 143 |
if test "x$MTH" = x1 ; then |
if test "x$MTH" = x1 ; then |
| 144 |
yy=`echo $OPTFILE | grep -c '+mth$'` |
yy=`echo $OPTFILE | grep -c '+mth$'` |
| 155 |
day=`echo $ttt | sed -e 's|_| |g' |awk '{print $NF}'` |
day=`echo $ttt | sed -e 's|_| |g' |awk '{print $NF}'` |
| 156 |
|
|
| 157 |
if [ $day -lt $BEFORE ] ; then |
if [ $day -lt $BEFORE ] ; then |
| 158 |
echo "$OPTFILE$kind $day $OPTFILE $kind $i" >> ./plist |
echo "$OPTFILE$order $day $OPTFILE $kind $i" >> ./plist |
| 159 |
elif [ $day -ge $FIRSTDAY -a $day -le $LASTDAY ] ; then |
elif [ $day -ge $FIRSTDAY -a $day -le $LASTDAY ] ; then |
| 160 |
echo "$OPTFILE$kind $day $OPTFILE $kind $i" >> ./slist |
echo "$OPTFILE$order $day $OPTFILE $kind $i" >> ./slist |
| 161 |
else |
else |
| 162 |
if test $dBug = 't' ; then |
if test $dBug = 't' ; then |
| 163 |
echo "discard day='$day' from: $i" | tee -a $OUTPFIL |
echo "discard day='$day' from: $i" | tee -a $OUTPFIL |