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

SCM Repository

[diderot] Annotation of /examples/iso2d-spatial/go-iso2d-glk.sh
ViewVC logotype

Annotation of /examples/iso2d-spatial/go-iso2d-glk.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2985 - (view) (download) (as text)

1 : glk 2980 #!/usr/bin/env bash
2 :     set -o errexit
3 :     set -o nounset
4 :    
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 : glk 2985 GLK=glk2
15 :    
16 : glk 2980 # compile
17 : glk 2985 ../../branches/lamont/bin/diderotc --exec iso2d-$GLK.diderot
18 :     junk iso2d-$GLK.{c,o}
19 : glk 2980
20 :     # incrementally let the particles do more and more steps
21 :     maxN=25
22 :     for N in $(seq -w 0 $maxN); do
23 :     echo $N ==========
24 : glk 2985 ./iso2d-$GLK -iterMax $N
25 : glk 2980 unu jhisto -i outPos.nrrd -min -1.5 -1.5 -max 1.5 1.5 -b 700 700 \
26 :     | unu dist -th 0.5 \
27 :     | unu quantize -b 8 -min 0 -max 2 -o pos-$N.png
28 :     done
29 :    
30 : glk 2981 # behold!
31 : glk 2980 open pos-??.png

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