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

SCM Repository

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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3029 - (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 3023 GLK=glk4
15 : glk 2985
16 : glk 3005 DFLAGS="--disable-high-vn --disable-mid-vn --disable-low-vn"
17 : glk 2980 # compile
18 : glk 2990 ../../branches/lamont/bin/diderotc $DFLAGS --exec iso2d-$GLK.diderot
19 :    
20 : glk 2985 junk iso2d-$GLK.{c,o}
21 : glk 2980
22 :     # incrementally let the particles do more and more steps
23 : glk 3023 maxN=90
24 : glk 3005 for N in $(seq -w 1 $maxN); do
25 : glk 3023 echo $N ========== ./iso2d-$GLK -iterLimit $N
26 :     ./iso2d-$GLK -iterLimit $N
27 : glk 3029 unu jhisto -i pos.nrrd -min -1.5 -1.5 -max 1.5 1.5 -b 700 700 \
28 : glk 2980 | unu dist -th 0.5 \
29 :     | unu quantize -b 8 -min 0 -max 2 -o pos-$N.png
30 :     done
31 :    
32 : glk 2981 # behold!
33 : glk 2980 open pos-??.png

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