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

SCM Repository

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

Diff of /branches/lamont/test/spatial/particle.diderot

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

revision 2099, Tue Nov 27 17:38:40 2012 UTC revision 2120, Thu Feb 7 13:46:31 2013 UTC
# Line 14  Line 14 
14  int numParticles = 64;  int numParticles = 64;
15  int dimSize = 2;  int dimSize = 2;
16  int strandSize = 2;  int strandSize = 2;
17  int query_radius = 10;  real query_radius = 10.0;
18    
19  strand Particle (int i, real x,real y) {  strand Particle (int i, real x,real y) {
20      vec2 pos = [x,y];      vec2 pos = [x,y];
21      output int neighborCount = 0;      output int neighborCount = 0;
22      update {      update {
23           int count = 0;           int count = 0;
24    
25           foreach(Particle p in sphere(query_radius)){           foreach(Particle p in sphere(query_radius)){
26              count = count + 1;              count = count + 1;
27           }           }

Legend:
Removed from v.2099  
changed lines
  Added in v.2120

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