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

SCM Repository

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

View of /examples/iso2d-spatial/run-iso3d-glk.sh

Parent Directory Parent Directory | Revision Log Revision Log

Revision 3180 - (download) (as text) (annotate)
Tue Mar 31 03:48:35 2015 UTC (4 years, 2 months ago) by glk
File size: 692 byte(s)
run this as a benchmark
#!/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

# controls whether we re-compile
if true; then
  ../../branches/lamont/bin/diderotc --disable-high-vn --disable-mid-vn --disable-low-vn --exec iso3d-glk3.diderot
  junk iso3d-glk3.{c,o}

# make things run slower by increasing res or decreasing epsilon
./iso3d-glk3 -res 25 -epsilon 0.01

# make a 2D picture of some of the points
unu dice -i pos.nrrd -a 0 -o ./ ; junk {0,1,2}.nrrd
unu 2op gt 2.nrrd 0 |
unu jhisto -i {0,1}.nrrd -w - -b 800 800 -min -1.2 -1.2 -max 1.2 1.2 -t float |
unu quantize -b 8 -max 1.5 -o pos-2d.png

ViewVC Help
Powered by ViewVC 1.0.0