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

SCM Repository

[diderot] Diff of /branches/lamont_dev/test/particle.diderot
ViewVC logotype

Diff of /branches/lamont_dev/test/particle.diderot

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

revision 1867, Mon May 7 14:43:11 2012 UTC revision 1868, Fri May 11 03:17:42 2012 UTC
# Line 13  Line 13 
13    
14      update {      update {
15           int count = 0;           int count = 0;
16             int step = 3;
17             int b = 2;
18           foreach(Particle p in radius(5.0)){           foreach(Particle p in radius(5.0)){
19             // neighbor[count] = p.id;             // neighbor[count] = p.id;
20              count = count + 1;              count = count + 1;
21                b = count + 2;
22            }            }
   
23           neighborCount = count;           neighborCount = count;
24           stabilize;           stabilize;
25      }      }
    // stabilize {  
        // neighbors = [neighbor[0], neighbor[1], neighbor[2], neighbor[3]];  
   //  }  
26  }  }
27    
   
   
28  initially [ Particle(ui, vi) | vi in 0..(worldHeight-1), ui in 0..(worldWidth-1) ];  initially [ Particle(ui, vi) | vi in 0..(worldHeight-1), ui in 0..(worldWidth-1) ];

Legend:
Removed from v.1867  
changed lines
  Added in v.1868

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