171 |
rm -f t[01][56].txt t[56].txt |
rm -f t[01][56].txt t[56].txt |
172 |
} |
} |
173 |
|
|
174 |
|
check_for_add_mon_output() |
175 |
|
{ |
176 |
|
# Check for additional types of monitor output |
177 |
|
if test "x$1" = x ; then |
178 |
|
return |
179 |
|
fi |
180 |
|
|
181 |
|
ptr_add="trcstat_ptracerXX_min trcstat_ptracerXX_max" |
182 |
|
ptr_add="$ptr_add trcstat_ptracerXX_mean trcstat_ptracerXX_sd" |
183 |
|
for ii in 1 2 3 4 5 ; do |
184 |
|
for jj in $ptr_add ; do |
185 |
|
name=`eval "echo $jj | sed -e 's|XX|0"$ii"|g'"` |
186 |
|
tst=`grep $name $1 | wc -l | awk '{print $1}'` |
187 |
|
if test ! "x$tst" = x0 ; then |
188 |
|
eval "HAVE_PTR0"$ii"=t" |
189 |
|
fi |
190 |
|
done |
191 |
|
# eval 'echo "HAVE_PTR0'$ii' = $HAVE_PTR0'$ii'"' |
192 |
|
done |
193 |
|
} |
194 |
|
|
195 |
testoutput() |
testoutput() |
196 |
{ |
{ |
197 |
# testoutput directory subdir extension |
# testoutput directory subdir extension |
221 |
testoutput_for_prop $1 "dynstat_vvel_max" "V maximum" $2 $3; vmax=$? |
testoutput_for_prop $1 "dynstat_vvel_max" "V maximum" $2 $3; vmax=$? |
222 |
testoutput_for_prop $1 "dynstat_vvel_mean" "V mean" $2 $3; vmean=$? |
testoutput_for_prop $1 "dynstat_vvel_mean" "V mean" $2 $3; vmean=$? |
223 |
testoutput_for_prop $1 "dynstat_vvel_sd" "V s.d." $2 $3; vsd=$? |
testoutput_for_prop $1 "dynstat_vvel_sd" "V s.d." $2 $3; vsd=$? |
224 |
dashnum $cg2dres $tmin $tmax $tmean $tsd $smin $smax $smean $ssd \ |
|
225 |
$umin $umax $umean $usd $vmin $vmax $vmean $vsd |
for ii in 1 2 3 4 5 ; do |
226 |
|
testoutput_for_prop $1 "trcstat_ptracer0"$ii"_min" "p0"$ii"_min" $2 $3 |
227 |
|
RETVAL=$? ; eval `echo "p0"$ii"_min="$RETVAL` |
228 |
|
testoutput_for_prop $1 "trcstat_ptracer0"$ii"_max" "p0"$ii"_max" $2 $3 |
229 |
|
RETVAL=$? ; eval `echo "p0"$ii"_max="$RETVAL` |
230 |
|
testoutput_for_prop $1 "trcstat_ptracer0"$ii"_mean" "p0"$ii"_mean" $2 $3 |
231 |
|
RETVAL=$? ; eval `echo "p0"$ii"_mean="$RETVAL` |
232 |
|
testoutput_for_prop $1 "trcstat_ptracer0"$ii"_sd" "p0"$ii"_sd" $2 $3 |
233 |
|
RETVAL=$? ; eval `echo "p0"$ii"_sd="$RETVAL` |
234 |
|
done |
235 |
|
|
236 |
|
allargs="$cg2dres $tmin $tmax $tmean $tsd $smin $smax $smean $ssd" |
237 |
|
allargs="$allargs $umin $umax $umean $usd $vmin $vmax $vmean $vsd" |
238 |
|
allargs="$allargs $p01_min $p01_max $p01_mean $p01_sd" |
239 |
|
allargs="$allargs $p02_min $p02_max $p02_mean $p02_sd" |
240 |
|
allargs="$allargs $p03_min $p03_max $p03_mean $p03_sd" |
241 |
|
allargs="$allargs $p04_min $p04_max $p04_mean $p04_sd" |
242 |
|
allargs="$allargs $p05_min $p05_max $p05_mean $p05_sd" |
243 |
|
|
244 |
|
eval "dashnum $allargs" |
245 |
|
|
246 |
else |
else |
247 |
testoutput_ad $1 $2 "precision_grdchk_result" |
testoutput_ad $1 $2 "precision_grdchk_result" |
248 |
fi |
fi |
278 |
$command > make.log 2>&1 |
$command > make.log 2>&1 |
279 |
RETVAL=$? |
RETVAL=$? |
280 |
# Reduce the size of the testing emails! |
# Reduce the size of the testing emails! |
281 |
# cp Makefile $CDIR |
head -100 Makefile > $CDIR/Makefile_head |
282 |
if test "x$RETVAL" != x0 ; then |
if test "x$RETVAL" != x0 ; then |
283 |
tail make.log |
tail make.log |
284 |
echo "genmakemodel: genmake failed" 1>&2 |
echo "genmakemodel: genmake failed" 1>&2 |
463 |
printf 'runmodel ... ' 1>&2 |
printf 'runmodel ... ' 1>&2 |
464 |
# make output.txt |
# make output.txt |
465 |
echo |
echo |
466 |
|
rm -f run.log |
467 |
# echo "COMMAND='$COMMAND'" |
# echo "COMMAND='$COMMAND'" |
468 |
# echo "pwd='"`pwd`"'" |
# echo "pwd='"`pwd`"'" |
469 |
( eval $COMMAND ) >> run.log 2>&1 |
( eval $COMMAND ) > run.log 2>&1 |
470 |
RETVAL=$? |
RETVAL=$? |
471 |
if test "x$RETVAL" = x0 ; then |
if test "x$RETVAL" = x0 ; then |
472 |
|
tail run.log |
473 |
echo successful 1>&2 |
echo successful 1>&2 |
474 |
# === Reduce the size of the testing emails! |
# === Reduce the size of the testing emails! |
475 |
# if test "x$ADM" = x ; then |
# if test "x$ADM" = x ; then |
477 |
# else |
# else |
478 |
# cp output.txt_adm $CDIR"/output.txt_adm" |
# cp output.txt_adm $CDIR"/output.txt_adm" |
479 |
# fi |
# fi |
480 |
|
if test -s STDERR.0000 ; then cp STDERR.0000 $CDIR"/STDERR.0000" ; fi |
481 |
return 0 |
return 0 |
482 |
else |
else |
483 |
tail run.log |
tail run.log |
484 |
echo failed 1>&2 |
echo failed 1>&2 |
485 |
cp run.log $CDIR"/run.log" |
cp run.log $CDIR"/run.log" |
486 |
|
if test -s STDERR.0000 ; then cp STDERR.0000 $CDIR"/STDERR.0000" ; fi |
487 |
return 1 |
return 1 |
488 |
fi |
fi |
489 |
) |
) |
626 |
|
|
627 |
ADM= |
ADM= |
628 |
|
|
629 |
|
# Additional monitor types |
630 |
|
# HAVE_PTR01= |
631 |
|
# HAVE_PTR02= |
632 |
|
# HAVE_PTR03= |
633 |
|
# HAVE_PTR04= |
634 |
|
# HAVE_PTR05= |
635 |
|
|
636 |
printf "parsing options... " |
printf "parsing options... " |
637 |
|
|
638 |
ac_prev= |
ac_prev= |
808 |
echo |
echo |
809 |
echo >> $SUMMARY |
echo >> $SUMMARY |
810 |
if test "x$ADM" = x ; then |
if test "x$ADM" = x ; then |
811 |
cat << EOF | tee -a $SUMMARY |
line_0=" ----T----- ----S----- ----U----- ----V-----" |
812 |
T S U V |
line_1="G D M c m s m s m s m s" |
813 |
G D M c m s m s m s m s |
line_2="E p a R g m m e . m m e . m m e . m m e ." |
814 |
E p a R g m m e . m m e . m m e . m m e . |
line_3="N n k u 2 i a a d i a a d i a a d i a a d" |
815 |
N n k u 2 i a a d i a a d i a a d i a a d |
line_4="2 d e n d n x n . n x n . n x n . n x n ." |
816 |
2 d e n d n x n . n x n . n x n . n x n . |
for ii in 1 2 3 4 5 ; do |
817 |
|
# tst=`eval 'echo $HAVE_PTR0'$ii` |
818 |
EOF |
# if test "x$tst" = xt ; then |
819 |
|
line_0="$line_0 --PTR 0"$ii"--" |
820 |
|
line_1="$line_1 m s" |
821 |
|
line_2="$line_2 m m e ." |
822 |
|
line_3="$line_3 i a a d" |
823 |
|
line_4="$line_4 n x n ." |
824 |
|
# fi |
825 |
|
done |
826 |
|
echo "$line_0" | tee -a $SUMMARY |
827 |
|
echo "$line_1" | tee -a $SUMMARY |
828 |
|
echo "$line_2" | tee -a $SUMMARY |
829 |
|
echo "$line_3" | tee -a $SUMMARY |
830 |
|
echo "$line_4" | tee -a $SUMMARY |
831 |
|
echo " " | tee -a $SUMMARY |
832 |
else |
else |
833 |
echo "ADJOINT=true" >> $SUMMARY |
echo "ADJOINT=true" >> $SUMMARY |
834 |
echo >> $SUMMARY |
echo >> $SUMMARY |
868 |
continue |
continue |
869 |
fi |
fi |
870 |
|
|
871 |
|
# Check for additional types of monitor output |
872 |
|
check_for_add_mon_output $fout |
873 |
|
|
874 |
builddir="input" |
builddir="input" |
875 |
rundir="input" |
rundir="input" |
876 |
use_seperate_build=0 |
use_seperate_build=0 |