322 |
'AthSiG') testoutput_var $1 "thSI_Ice_Area_G" "thSIc Area Global" $2 $refoutp ; yy=$? ;; |
'AthSiG') testoutput_var $1 "thSI_Ice_Area_G" "thSIc Area Global" $2 $refoutp ; yy=$? ;; |
323 |
'AthSiS') testoutput_var $1 "thSI_Ice_Area_S" "thSIc Area South" $2 $refoutp ; yy=$? ;; |
'AthSiS') testoutput_var $1 "thSI_Ice_Area_S" "thSIc Area South" $2 $refoutp ; yy=$? ;; |
324 |
'AthSiN') testoutput_var $1 "thSI_Ice_Area_N" "thSIc Area North" $2 $refoutp ; yy=$? ;; |
'AthSiN') testoutput_var $1 "thSI_Ice_Area_N" "thSIc Area North" $2 $refoutp ; yy=$? ;; |
325 |
'HthSiG') testoutput_var $1 "thSI_IceH_ave_G" "thSIc H Global" $2 $refoutp ; yy=$? ;; |
'HthSiG') testoutput_var $1 "thSI_IceH_ave_G" "thSIc H Glob-ave" $2 $refoutp ; yy=$? ;; |
326 |
'HthSiS') testoutput_var $1 "thSI_IceH_ave_S" "thSIc H South" $2 $refoutp ; yy=$? ;; |
'HthSiS') testoutput_var $1 "thSI_IceH_ave_S" "thSIc H South-av" $2 $refoutp ; yy=$? ;; |
327 |
'HthSiN') testoutput_var $1 "thSI_IceH_ave_N" "thSIc H North" $2 $refoutp ; yy=$? ;; |
'HthSiN') testoutput_var $1 "thSI_IceH_ave_N" "thSIc H North-av" $2 $refoutp ; yy=$? ;; |
328 |
|
'HthMxS') testoutput_var $1 "thSI_IceH_max_S" "thSIc H South-max" $2 $refoutp ; yy=$? ;; |
329 |
|
'HthMxN') testoutput_var $1 "thSI_IceH_max_N" "thSIc H North-max" $2 $refoutp ; yy=$? ;; |
330 |
*) yy=99; echo "WARNING: asking for var=$xx : not recognized !" 1>&2 ;; |
*) yy=99; echo "WARNING: asking for var=$xx : not recognized !" 1>&2 ;; |
331 |
esac |
esac |
332 |
if test $xx = $sVar |
if test $xx = $sVar |
1282 |
fi |
fi |
1283 |
|
|
1284 |
# create the FORTRAN comparison code |
# create the FORTRAN comparison code |
1285 |
if test -x tr_cmpnum ; then |
if test "x$CLEANUP" = xt -o -x tr_cmpnum ; then |
1286 |
echo "skipping comparison code build" |
echo "skipping comparison code build" |
1287 |
else |
else |
1288 |
createcodelet |
createcodelet |
1298 |
# Create a uniquely named directory to store results |
# Create a uniquely named directory to store results |
1299 |
CMDLINE=$0 |
CMDLINE=$0 |
1300 |
for xx in "$@" ; do nw=`echo $xx | wc -w` |
for xx in "$@" ; do nw=`echo $xx | wc -w` |
1301 |
if test $nw = '1' ; then CMDLINE="$CMDLINE $xx" |
if test $nw = '1' ; then CMDLINE="$CMDLINE $xx" ; else |
1302 |
else CMDLINE="$CMDLINE '$xx'" ; fi |
nb=`echo $xx | grep -c '='` |
1303 |
|
if test $nb = 0 ; then CMDLINE="$CMDLINE '$xx'" |
1304 |
|
else yy=`echo "$xx'" | sed "s/=/='/"` ; |
1305 |
|
CMDLINE="$CMDLINE $yy" ; fi |
1306 |
|
fi |
1307 |
done |
done |
1308 |
#for xx in "$@" ; do CMDLINE="$CMDLINE '$xx'" ; done |
#for xx in "$@" ; do CMDLINE="$CMDLINE '$xx'" ; done |
1309 |
MACH=`hostname` |
MACH=`hostname` |
1350 |
echo >> $SUMMARY |
echo >> $SUMMARY |
1351 |
echo " OPTFILE=$OPTFILE" >> $SUMMARY |
echo " OPTFILE=$OPTFILE" >> $SUMMARY |
1352 |
else |
else |
1353 |
echo | tee $SUMMARY |
echo | tee -a $SUMMARY |
1354 |
echo "ERROR: can't read OPTFILE=\"$OPTFILE\"" | tee $SUMMARY |
echo "ERROR: can't read OPTFILE=\"$OPTFILE\"" | tee -a $SUMMARY |
1355 |
exit 1 |
exit 1 |
1356 |
fi |
fi |
1357 |
else |
else |
1378 |
else |
else |
1379 |
line_0=`printf '%s %2i' 'default ' $MATCH_CRIT` |
line_0=`printf '%s %2i' 'default ' $MATCH_CRIT` |
1380 |
if test $KIND = 1 ; then |
if test $KIND = 1 ; then |
1381 |
echo "TANGLIN=true" >> $SUMMARY |
#echo "TANGLIN=true" >> $SUMMARY |
1382 |
|
echo "TangLin generated by TAF" >> $SUMMARY |
1383 |
|
elif test $KIND = 3 ; then |
1384 |
|
echo "TangLin generated by OpenAD" >> $SUMMARY |
1385 |
|
elif test $KIND = 2 ; then |
1386 |
|
#echo "ADJOINT=true" >> $SUMMARY |
1387 |
|
echo "Adjoint generated by TAF" >> $SUMMARY |
1388 |
|
else |
1389 |
|
echo "Adjoint generated by OpenAD" >> $SUMMARY |
1390 |
|
fi |
1391 |
|
if test $KIND = 1 -o $KIND = 3 ; then |
1392 |
line_1="G D M C T F" |
line_1="G D M C T F" |
1393 |
line_2="e p a R o L D" |
line_2="e p a R o L D" |
1394 |
else |
else |
|
echo "ADJOINT=true" >> $SUMMARY |
|
1395 |
line_1="G D M C A F" |
line_1="G D M C A F" |
1396 |
line_2="e p a R o d D" |
line_2="e p a R o d D" |
1397 |
fi |
fi |
1399 |
line_4="2 d e n t r r" |
line_4="2 d e n t r r" |
1400 |
echo >> $SUMMARY |
echo >> $SUMMARY |
1401 |
fi |
fi |
1402 |
|
if test "x$CLEANUP" != xt ; then |
1403 |
echo "$line_0" | tee -a $SUMMARY |
echo "$line_0" | tee -a $SUMMARY |
1404 |
echo "$line_1" | tee -a $SUMMARY |
echo "$line_1" | tee -a $SUMMARY |
1405 |
echo "$line_2" | tee -a $SUMMARY |
echo "$line_2" | tee -a $SUMMARY |
1406 |
echo "$line_3" | tee -a $SUMMARY |
echo "$line_3" | tee -a $SUMMARY |
1407 |
echo "$line_4" | tee -a $SUMMARY |
echo "$line_4" | tee -a $SUMMARY |
1408 |
echo "" | tee -a $SUMMARY |
echo "" | tee -a $SUMMARY |
1409 |
|
fi |
1410 |
echo "-------------------------------------------------------------------------------" |
echo "-------------------------------------------------------------------------------" |
1411 |
|
|
1412 |
# ...and each test directory... |
# ...and each test directory... |
1515 |
# Check whether there are "extra runs" for this testdir |
# Check whether there are "extra runs" for this testdir |
1516 |
extra_runs= |
extra_runs= |
1517 |
if test "x$NORUN" = xf ; then |
if test "x$NORUN" = xf ; then |
1518 |
ex_run_dirs=`( cd $dir ; echo $inputdir.* )` |
ex_run_dirs=`( cd $dir ; ls -d $inputdir.* 2> /dev/null )` |
1519 |
fi |
fi |
1520 |
#echo "ex_run_dirs='$ex_run_dirs'" |
#echo "ex_run_dirs='$ex_run_dirs'" |
1521 |
for exd in $ex_run_dirs ; do |
for exd in $ex_run_dirs ; do |
1522 |
name=`echo $exd | sed -e "s/$inputdir\.//"` |
name=`echo $exd | sed -e "s/$inputdir\.//"` |
1523 |
refExOut=`echo $ref_outp | sed "s/\./.${name}./"` |
refExOut=`echo $ref_outp | sed "s/\./.${name}./"` |
1524 |
outf="$dir/results/$refExOut" |
outf="$dir/results/$refExOut" |
|
#if test -f $outf -a -r $outf ; then |
|
1525 |
if test -r $outf -o -r ${outf}.gz ; then |
if test -r $outf -o -r ${outf}.gz ; then |
1526 |
if test "x$MULTI_THREAD" = "xt" ; then |
if test "x$MULTI_THREAD" = "xt" ; then |
1527 |
if test -r $dir"/"$exd"/eedata.mth" ; then |
if test -r $dir"/"$exd"/eedata.mth" ; then |
1710 |
if test "x$DELDIR" = xt ; then |
if test "x$DELDIR" = xt ; then |
1711 |
rm -rf $DRESULTS |
rm -rf $DRESULTS |
1712 |
fi |
fi |
1713 |
|
echo "======== End of testreport execution ========" |