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

SCM Repository

[diderot] View of /branches/vis12/bugs/open/bug032.diderot
ViewVC logotype

View of /branches/vis12/bugs/open/bug032.diderot

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2647 - (download) (annotate)
Thu May 29 17:48:44 2014 UTC (6 years, 6 months ago) by jhr
File size: 869 byte(s)
  Adding bug032
// This program compiles w/o error as a library, but when the "--exec" option is
// given, it produces the following error:
//
// <jhr@aeneas> ../../bin/diderotc --exec bug032.diderot
// uncaught exception Fail [Fail: CTyTranslate.initC(image(IMAGE2D<float>)) not supported yet]
//   raised at common/phase-timer.sml:76.50-76.52
//   raised at common/phase-timer.sml:76.50-76.52
//   raised at c-util/gen-inputs.sml:107.16-107.90

int gridSize = 200;
input image(2)[] img = image("../data/ddro.nrrd");

field#1(2)[] F = ctmr ⊛ img;

strand sample (vec2 pos0) {
  vec2 pos = pos0;
  output real value = 0.0;
  update {
    value = F(pos);
    stabilize;
  }
}

initially { sample([lerp(0.0, 1.0, -0.5, real(ui), real(gridSize)-0.5),
                    lerp(0.0, 1.0, -0.5, real(vi), real(gridSize)-0.5)])
            | vi in 0..(gridSize-1), ui in 0..(gridSize-1) };

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