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

SCM Repository

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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4780 - (view) (download)

1 : glk 4715 #!/bin/bash
2 :     set -o errexit
3 :     set -o nounset
4 :     shopt -s expand_aliases
5 :     JUNK=""
6 :     function junk {
7 :     JUNK="$JUNK $@"
8 :     }
9 :     function cleanup {
10 :     rm -rf $JUNK
11 :     }
12 :     trap cleanup err exit int term
13 :    
14 : jhr 4780 alias diderotc=@DIDEROTC@
15 :     alias unu=@TEEM_BIN@/unu
16 :    
17 : glk 4715 PROG=sphere-snapbug
18 :    
19 : jhr 4780 echo "@DIDEROTC@ --snapshot --exec $PROG.diderot"
20 :     diderotc --snapshot --exec $PROG.diderot
21 : glk 4715
22 :     #valgrind \
23 :     ./$PROG -s 1 -pcp 3 ||:
24 :    
25 :     for PIIN in pos-????.nrrd; do
26 :     IIN=${PIIN#*-}
27 :     II=${IIN%.*}
28 :     echo $PIIN
29 : jhr 4780 gotzero=$(unu project -i $PIIN -a 0 -m l2 | unu minmax - | grep "min: 0$" ||:)
30 : glk 4715 if [[ ! -z "${gotzero// }" ]]; then
31 :     echo "BUG: had zero-length vectors"
32 :     fi
33 :     done
34 :    
35 :     junk pos.nrrd pos-????.nrrd

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