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 2161, Wed Feb 20 04:32:27 2013 UTC revision 2162, Thu Feb 21 04:59:17 2013 UTC
# Line 13  Line 13 
13  real{} posns = load("positions.nrrd");  real{} posns = load("positions.nrrd");
14  int numParticles = 9;  int numParticles = 9;
15  int dimSize = 2;  int dimSize = 2;
16    vec4 qWinDim = [0,400,0,400];
17  vec2 qGridDim = [4,4];  vec2 qGridDim = [4,4];
18  vec2 qCellDim = [100,100];  vec2 qCellDim = [100,100];
19  real query_radius = 150.0;  real query_radius = 100.0;
20    
21  strand Particle (int i, real x,real y) {  strand Particle (int i, real x,real y) {
22      vec2 pos = [x,y];      vec2 pos = [x,y];
# Line 25  Line 26 
26           int count = 0;           int count = 0;
27           print("======Strand id: #", id, " Neigbors======\n");           print("======Strand id: #", id, " Neigbors======\n");
28           foreach(Particle p in sphere(query_radius)){           foreach(Particle p in sphere(query_radius)){
29              print("Neighbor id: ", p.id);              print("Neighbor id: ", p.id, "\n");
30              count = count;              count = count;
31           }           }
32           print("==================================\n");           print("==================================\n");

Legend:
Removed from v.2161  
changed lines
  Added in v.2162

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