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
}
' \
> $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 \