From 242a30e8605acd45f545de213073de8f0c021f1a Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Sun, 3 Mar 2013 16:31:34 +0100 Subject: [PATCH] Don't abort when nb == 0. --- supercomp11/data/interactive_plot | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/supercomp11/data/interactive_plot b/supercomp11/data/interactive_plot index b61b0c0..645880b 100755 --- a/supercomp11/data/interactive_plot +++ b/supercomp11/data/interactive_plot @@ -13,6 +13,16 @@ toclean+=( $tmpA ) tmpB=$(mktemp) toclean+=( $tmpB ) +debug=0 +if [ "$1" = "-d" ]; then + debug=1 + shift +fi + +if_debug() { + [ $debug = 1 ] && eval "$@" +} + RE=${1:-_R[1N]_} grep -e "$RE" alldata > $tmpA @@ -51,12 +61,14 @@ $0 ~ re { } ' \ > $tmpB + title="results_${type}_${ratio}/plat_${platf}/topo_${topo}" if [ ! -s $tmpB ]; then + if_debug echo "... skip: $title" continue fi - title="results_${type}_${ratio}/plat_${platf}/topo_${topo}" echo "===[ $title ]===" - nb=$(expr $(grep -c ^algo $tmpB) - 1) + if_debug cat $tmpB + nb=$(expr $(grep -c ^algo $tmpB) - 1) || true if true; then ### show conv max gnuplot \ -- 2.39.5