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

SCM Repository

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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2592 - (download) (annotate)
Thu Apr 17 20:47:58 2014 UTC (5 years, 4 months ago) by glk
File size: 776 byte(s)
another bug
/*
** BUG
** diderotc --exec bug030.diderot
** generates:

bug031.c:87:17: error: use of undeclared identifier 'p_x0_1'
    self->pnt = p_x0_1;
                ^
1 error generated.
uncaught exception Fail [Fail: error compiling/linking]
  raised at common/phase-timer.sml:76.50-76.52
  raised at common/phase-timer.sml:76.50-76.52
  raised at common/phase-timer.sml:76.50-76.52
  raised at c-util/run-cc.sml:28.17-28.47

*/

vec2 {} x0s = load("../data/flow-rotP20-points.txt");
input real scl = 0.4;

field#1(2)[2] V = bspln3 ⊛ image("../data/flow.nrrd");

strand arrow(int ii, vec2 x0) {
  output vec2 pnt = [0, 0];

  update {
    if (!inside(x0, V)) {
      stabilize;
    } else {
      pnt = x0;
    }
  }
}

initially [ arrow(ii, x0s{ii}) | ii in 0..length(x0s)-1 ];

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