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 4715 - (download) (annotate)
Tue Oct 11 18:37:36 2016 UTC (2 years, 8 months ago) by glk
File size: 636 byte(s)
bug in how snapshots show strands with invalid state
#!/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

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
junk $PROG{,.cxx}

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