Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] View of /tests/vis15-bugs/sphere-snapbug_sh.in
ViewVC logotype

View of /tests/vis15-bugs/sphere-snapbug_sh.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4780 - (download) (annotate)
Tue Oct 18 23:10:28 2016 UTC (3 years, 1 month ago) by jhr
File size: 668 byte(s)
  restore use of aliases
#!/bin/bash
set -o errexit
set -o nounset
shopt -s expand_aliases
JUNK=""
function junk {
  JUNK="$JUNK $@"
}
function cleanup {
  rm -rf $JUNK
}
trap cleanup err exit int term

alias diderotc=@DIDEROTC@
alias unu=@TEEM_BIN@/unu

PROG=sphere-snapbug

echo "@DIDEROTC@ --snapshot --exec $PROG.diderot"
diderotc --snapshot --exec $PROG.diderot

#valgrind \
./$PROG -s 1 -pcp 3 ||:

for PIIN in pos-????.nrrd; do
    IIN=${PIIN#*-}
    II=${IIN%.*}
    echo $PIIN
    gotzero=$(unu project -i $PIIN -a 0 -m l2 | unu minmax - | grep "min: 0$" ||:)
    if [[ ! -z "${gotzero// }" ]]; then
       echo "BUG: had zero-length vectors"
    fi
done

junk pos.nrrd pos-????.nrrd

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0