136 |
OPTFILE="not_explicitly_specified" |
OPTFILE="not_explicitly_specified" |
137 |
fi |
fi |
138 |
|
|
139 |
|
# EXTRA = non-standard list of experiment |
140 |
ADJOINT= |
ADJOINT= |
141 |
TANGLIN= |
TANGLIN= |
142 |
RESTART=0 |
RESTART=0 |
143 |
|
EXTRA=0 |
144 |
FAST=0 |
FAST=0 |
145 |
DVLP=0 |
DVLP=0 |
146 |
MPI=0 |
MPI=0 |
152 |
comm=`grep 'TANGLIN=true' $dir/summary.txt 2>/dev/null` |
comm=`grep 'TANGLIN=true' $dir/summary.txt 2>/dev/null` |
153 |
eval $comm |
eval $comm |
154 |
RESTART=`grep -c 'test 2+2=4 summary' $dir/summary.txt` |
RESTART=`grep -c 'test 2+2=4 summary' $dir/summary.txt` |
155 |
FAST=`grep -c "^run: .*testreport.* '*-fast'*" $dir/summary.txt` |
comm=`grep '^run: .*testreport.* ' $dir/summary.txt` |
156 |
|
EXTRA=`echo "$comm" | grep -c " -*-tdir\>"` |
157 |
|
if test "x$EXTRA" = x0 ; then |
158 |
|
EXTRA=`echo "$comm" | grep -c " -*-t\>"` |
159 |
|
fi |
160 |
|
FAST=`echo "$comm" | grep -c " -*-fast\>"` |
161 |
if test "x$FAST" = x0 ; then |
if test "x$FAST" = x0 ; then |
162 |
FAST=`grep -c "^run: .*testreport.* '*-noieee'*" $dir/summary.txt` |
FAST=`echo "$comm" | grep -c " '*-noieee'*"` |
163 |
fi |
fi |
164 |
DVLP=`grep -c "^run: .*testreport.* '*-devel'*" $dir/summary.txt` |
DVLP=`echo "$comm" | grep -c " -*-devel\>"` |
165 |
MPI=`grep -c "^run: .*testreport.* -mpi " $dir/summary.txt` |
MPI=`echo "$comm" | grep -c " -*-mpi\>"` |
166 |
if test "x$MPI" = x0 ; then |
if test "x$MPI" = x0 ; then |
167 |
MPI=`grep -c "^run: .*testreport.* -MPI " $dir/summary.txt` |
MPI=`echo "$comm" | grep -c " -*-MPI\>"` |
168 |
fi |
fi |
169 |
MTH=`grep -c "^run: .*testreport.* -mth " $dir/summary.txt` |
MTH=`echo "$comm" | grep -c " -*-mth\>"` |
170 |
UR4=`grep -c "^run: .*testreport.* -use_r4 " $dir/summary.txt` |
UR4=`echo "$comm" | grep -c " -*-use_r4\>"` |
171 |
if test "x$UR4" = x0 ; then |
if test "x$UR4" = x0 ; then |
172 |
UR4=`grep -c "^run: .*testreport.* -ur4 " $dir/summary.txt` |
UR4=`echo "$comm" | grep -c " -*-ur4\>"` |
173 |
fi |
fi |
174 |
fi |
fi |
175 |
if test "x$ADJOINT" = xtrue ; then |
if test "x$ADJOINT" = xtrue ; then |
176 |
kind="adjoint" ; order='000' |
kind="adjoint" ; order=0 |
177 |
elif test "x$TANGLIN" = xtrue ; then |
elif test "x$TANGLIN" = xtrue ; then |
178 |
kind="tanglin" ; order='001' |
kind="tanglin" ; order=1 |
179 |
elif test "x$RESTART" = x0 ; then |
elif test "x$RESTART" = x0 ; then |
180 |
kind="forward" ; order='002' |
kind="forward" ; order=2 |
181 |
else |
else |
182 |
kind="restart" ; order='003' |
kind="restart" ; order=3 |
183 |
|
fi |
184 |
|
if test "x$EXTRA" != x0 ; then |
185 |
|
order=`expr $order + 4` |
186 |
fi |
fi |
187 |
|
order=`printf '%3.3i' $order` |
188 |
if test "x$UR4" = x1 ; then |
if test "x$UR4" = x1 ; then |
189 |
OPTFILE="${OPTFILE}.use_r4" |
OPTFILE="${OPTFILE}.use_r4" |
190 |
fi |
fi |