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

SCM Repository

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

Diff of /examples/iso2d-spatial/iso2d-glk.diderot

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

revision 3025, Mon Mar 9 21:57:31 2015 UTC revision 3026, Mon Mar 9 21:59:05 2015 UTC
# Line 22  Line 22 
22    
23  strand Particle (int ID, vec2 pos0) {  strand Particle (int ID, vec2 pos0) {
24    // world is 1x1 centered at (0.5, 0.5)    // world is 1x1 centered at (0.5, 0.5)
25      vec2 pos = [pos0[0] + pos0[1]/gridSize, pos0[1] + pos0[0]/gridSize];      output vec2 pos = [pos0[0] + pos0[1]/gridSize, pos0[1] + pos0[0]/gridSize];
     output vec2 outPos = [0,0];  
26    
27      bool foundContour = false;      bool foundContour = false;
28      int contourSteps = 1;      int contourSteps = 1;
# Line 35  Line 34 
34      vec2 posOld2 = pos;      vec2 posOld2 = pos;
35      real hh = hhInit;      real hh = hhInit;
36    
     stabilize {  
       outPos = pos;  
     }  
   
37      update {      update {
38         if (!foundContour) {         if (!foundContour) {
39              // We bail if we're no longer inside or taken too many steps.              // We bail if we're no longer inside or taken too many steps.

Legend:
Removed from v.3025  
changed lines
  Added in v.3026

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