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

SCM Repository

[diderot] Diff of /branches/vis12/bugs/resolved/bug012.diderot
ViewVC logotype

Diff of /branches/vis12/bugs/resolved/bug012.diderot

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

revision 2308, Thu Mar 21 09:06:54 2013 UTC revision 2309, Thu Mar 21 10:57:53 2013 UTC
# Line 43  Line 43 
43      vec2 pos = pos0;      vec2 pos = pos0;
44      vec2 step = [0.0,0.0];      vec2 step = [0.0,0.0];
45      output real out = 0.0;      output real out = 0.0;
46      real sum = 0.0;      real sumPos = 0.0;
47      int stepIdx = 0;      int stepIdx = 0;
48      vec2 dir = [0.0,0.0];      vec2 dir = [0.0,0.0];
49    
50      update {      update {
51        dir = align(pos, lastdir);        dir = align(pos, lastdir);
52        pos += hh*dir;        pos += hh*dir;
53        sum += |pos|;        sumPos += |pos|;
54        stepIdx += 1;        stepIdx += 1;
55        lastdir = dir;        lastdir = dir;
56        if (stepIdx == stepNum) {        if (stepIdx == stepNum) {
# Line 59  Line 59 
59      }      }
60    
61      stabilize {      stabilize {
62        out = sum;        out = sumPos;
63      }      }
64  }  }
65    

Legend:
Removed from v.2308  
changed lines
  Added in v.2309

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