X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/loba-papers.git/blobdiff_plain/36c8811c57434d275c12398d6b9049490546674d..47d970c595adbdf48d5340fe34cf3d81b012788a:/supercomp11/data/interactive_plot 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 \