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

SCM Repository

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

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

Parent Directory Parent Directory | Revision Log Revision Log

Revision 3029 - (download) (as text) (annotate)
Mon Mar 9 22:04:41 2015 UTC (4 years ago) by glk
File size: 683 byte(s)
always pos.nrrd, and using glk4 now
#!/usr/bin/env bash
set -o errexit
set -o nounset

function junk {
  JUNK="$JUNK $@"
function cleanup {
  rm -rf $JUNK
trap cleanup err exit int term


DFLAGS="--disable-high-vn --disable-mid-vn --disable-low-vn"
# compile
../../branches/lamont/bin/diderotc $DFLAGS --exec iso2d-$GLK.diderot

junk iso2d-$GLK.{c,o}

# incrementally let the particles do more and more steps
for N in $(seq -w 1 $maxN); do
  echo $N ========== ./iso2d-$GLK -iterLimit $N
  ./iso2d-$GLK -iterLimit $N
  unu jhisto -i pos.nrrd -min -1.5 -1.5 -max 1.5 1.5 -b 700 700 \
   | unu dist -th 0.5 \
   | unu quantize -b 8 -min 0 -max 2 -o pos-$N.png

# behold!
open pos-??.png

ViewVC Help
Powered by ViewVC 1.0.0