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

SCM Repository

[diderot] Diff of /examples/iso2d-demo/iso2d.diderot
ViewVC logotype

Diff of /examples/iso2d-demo/iso2d.diderot

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

revision 2044, Sat Oct 20 18:46:50 2012 UTC revision 2079, Mon Nov 5 12:50:51 2012 UTC
# Line 10  Line 10 
10  int gridSize = 300;  int gridSize = 300;
11  image(2)[] diderot = image("data/ddro-80.nrrd");  image(2)[] diderot = image("data/ddro-80.nrrd");
12  field#1(2)[] F = ctmr ⊛ diderot;  field#1(2)[] F = ctmr ⊛ diderot;
13  input int stepsMax = 12;  input int stepsMax = 50;
14    input real stepScale = 1.0;
15  real epsilon = 0.0001;  real epsilon = 0.0001;
16    
17  strand sample (int ui, int vi) {  strand sample (int ui, int vi) {
# Line 36  Line 37 
37          if (|delta| < epsilon) {    // we've converged if step is small enough          if (|delta| < epsilon) {    // we've converged if step is small enough
38              stabilize;              stabilize;
39          }          }
40          pos += delta;          pos += stepScale * delta;
41          steps += 1;          steps += 1;
42      }      }
43  }  }

Legend:
Removed from v.2044  
changed lines
  Added in v.2079

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