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

SCM Repository

[diderot] Diff of /branches/pure-cfg/test/iso2d.diderot
ViewVC logotype

Diff of /branches/pure-cfg/test/iso2d.diderot

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 953, Sat Apr 23 12:22:15 2011 UTC revision 954, Sat Apr 23 12:22:43 2011 UTC
# Line 11  Line 11 
11  real isoval = 30.0;  real isoval = 30.0;
12  image(2)[] img = load("../data/ddro-64-unit.nrrd");  image(2)[] img = load("../data/ddro-64-unit.nrrd");
13  field#1(2)[] F = img ⊛ ctmr;  field#1(2)[] F = img ⊛ ctmr;
14  int stepsNum = 10;  int stepsMax = 10;
15  real epsilon = 0.001;  real epsilon = 0.001;
16    
17  strand sample (int ui, int vi) {  strand sample (int ui, int vi) {
# Line 23  Line 23 
23          // We tag this strand result as garbage by setting it to a          // We tag this strand result as garbage by setting it to a
24          // non-finite position; these will be filtered later.          // non-finite position; these will be filtered later.
25          // This is really what "die" is for, though (see below).          // This is really what "die" is for, though (see below).
26          if (!inside(pos, F) || steps > stepsNum) {          if (!inside(pos, F) || steps > stepsMax) {
27            // HEY (BUG) not able to use NaN as in "pos = [nan,nan]"            // HEY (BUG) not able to use NaN as in "pos = [nan,nan]"
28            // generated C code "vec2f(nanf, nanf)" causes problems            // generated C code "vec2f(nanf, nanf)" causes problems
29            pos = [∞,∞];            pos = [∞,∞];

Legend:
Removed from v.953  
changed lines
  Added in v.954

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