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 2561, Thu Mar 6 17:45:45 2014 UTC revision 2562, Mon Mar 10 04:10:03 2014 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  real query_radius = 60.5;  input real query_radius;
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      int id = i;      int id = i;
22      output int neighborCount = 0;      output real neighborCount = 0;
23      update {      update {
24           int count = 0;           int count = 0;
25           print("======Strand id: #", id, " (", x, ",", y, ") Neigbors======\n");           print("======Strand id: #", id, " (", x, ",", y, ") Neigbors======\n");
# Line 29  Line 29 
29           }           }
30           print("Count =",count,"\n");           print("Count =",count,"\n");
31           print("==================================\n");           print("==================================\n");
32           neighborCount = count;           neighborCount = real(count);
33           stabilize;           stabilize;
34      }      }
35  }  }

Legend:
Removed from v.2561  
changed lines
  Added in v.2562

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