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

SCM Repository

[diderot] Annotation of /tests/bc2d/run_sh.in
ViewVC logotype

Annotation of /tests/bc2d/run_sh.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4720 - (view) (download)

1 : glk 4720 #!/bin/bash
2 :     set -o errexit
3 :     set -o nounset
4 :     shopt -s expand_aliases
5 :     JUNK=""
6 :     function junk { JUNK="$JUNK $@"; }
7 :     function cleanup { rm -rf $JUNK; }
8 :     trap cleanup err exit int term
9 :    
10 :    
11 :     alias diderotc=@DIDEROTC@
12 :     alias unu=@TEEM_BIN@/unu
13 :    
14 :     PROG=plot1d-bc
15 :    
16 :     diderotc --debug --exec $PROG.diderot
17 :    
18 :     # try prefixing this with "valgrind"
19 :     ./$PROG
20 :    
21 :     # GLK gets a vertical streak in the lower half of the image, which
22 :     # is likely the visual manifestation of the memory bug
23 :     unu 2op exists rgb.nrrd 0 | unu quantize -b 8 -min 0 -max 1 -o out.png
24 :    
25 :     # for GLK the right side of the image is garbled,
26 :     # likely the visual manifestation of the memory bug
27 :     unu quantize -b 8 -i rgb.nrrd -b 8 -o out.ppm
28 :    
29 :     # cleanup
30 :     junk $PROG{,.cxx,.o} rgb.nrrd

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