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

SCM Repository

[diderot] View of /tests/vis15-bugs/isohnd/run_sh.in
ViewVC logotype

View of /tests/vis15-bugs/isohnd/run_sh.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4728 - (download) (annotate)
Tue Oct 11 20:23:36 2016 UTC (2 years, 9 months ago) by glk
File size: 1185 byte(s)
now configuring vis15-bugs/isohnd/run.sh
#!/bin/bash
set -o errexit
set -o nounset
shopt -s expand_aliases
JUNK=""
function junk { JUNK="$JUNK $@"; }
function cleanup { rm -rf $JUNK; }
trap cleanup err exit int term


DIDEROTC=@DIDEROTC@
alias unu=@TEEM_BIN@/unu

function ddro15 {
  name=$1
  echo "=== $DIDEROTC --debug --exec $name.diderot"
  $DIDEROTC --debug --exec $name.diderot
  junk $name{,.cxx,.o}
  echo "ddro compile done"
}

ddro15 isofixme

SIZE0=1000
SIZE1=600
OV=5
rm -f pos-???.png
for ITER in $(seq 0 39); do
  echo =========== $ITER
  echo "./isofixme -cent 61 40.7 -hght 53 -size0 77 -size1 34 -iterLimit $ITER -epsilon 0.001 -radius 2"
  ./isofixme -cent 61 40.7 -hght 53 -size0 77 -size1 34 -iterLimit $ITER -epsilon 0.001 -radius 2
  # from 10 to 110 is sampled with SIZE0=1000 pixels in joint histogram
  # => 1 unit of world-space is 10 pixels; particle radius is 20 pixels
  unu jhisto -i pos.nrrd -t float -min 10 10 -max 110 70 -b $[$SIZE0*$OV] $[$SIZE1*$OV] \
   | unu resample -s /$OV /$OV -k dgauss:1.1,3 \
   | unu quantize -b 8 -min 0 -max 0.008 -o $(printf pos-%03d.ppm $ITER)
done
junk pos.nrrd

# previously: one clump at 880 446 -> 98.0881 54.6745
# relocate to 403 258 -> 50.3403 35.8431

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