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 2415, Mon Aug 19 12:53:28 2013 UTC revision 2416, Mon Aug 19 12:57:45 2013 UTC
# Line 14  Line 14 
14  int numParticles = 9;  int numParticles = 9;
15  int tempGlobal = 34;  int tempGlobal = 34;
16  int dimSize = 2;  int dimSize = 2;
17  vec4 qWinDim = [0,400,400,0];  real query_radius = 60.5;
 vec2 qGridDim = [4,4];  
 vec2 qCellDim = [100,100];  
 real query_radius = 250.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];
# Line 25  Line 22 
22      output int neighborCount = 0;      output int neighborCount = 0;
23      update {      update {
24           int count = 0;           int count = 0;
25           print("======Strand id: #", id, " Neigbors======\n");           print("======Strand id: #", id, " (", x, ",", y, ") Neigbors======\n");
26           foreach(Particle p in sphere(query_radius)){           foreach(Particle p in sphere(query_radius)){
27              print("Neighbor id: ", p.id, "\n");              print("Neighbor id: ", p.id, "\n");
28              count = count;              count = count;

Legend:
Removed from v.2415  
changed lines
  Added in v.2416

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