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

SCM Repository

[diderot] View of /tests/vis12-bugs/src/bug032.diderot
ViewVC logotype

View of /tests/vis12-bugs/src/bug032.diderot

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4640 - (download) (annotate)
Tue Sep 27 20:54:47 2016 UTC (2 years, 10 months ago) by glk
File size: 869 byte(s)
initial result of svn export --username anonsvn --password=anonsvn https://svn.smlnj-gforge.cs.uchicago.edu/svn/diderot/branches/vis15/src/tests/
// 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