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 2416, Mon Aug 19 12:57:45 2013 UTC revision 2453, Mon Oct 7 04:32:27 2013 UTC
# Line 25  Line 25 
25           print("======Strand id: #", id, " (", x, ",", y, ") 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 + 1;
29           }           }
30             print("Count =",count,"\n");
31           print("==================================\n");           print("==================================\n");
32           neighborCount = count + tempGlobal;           neighborCount = count;
33           stabilize;           stabilize;
34      }      }
35  }  }
   
 global{  
     tempGlobal = tempGlobal + 2;  
 }  
   
36  initially {Particle(i,posns{i*dimSize},posns{i*dimSize+1}) | i in 0 .. numParticles-1 };  initially {Particle(i,posns{i*dimSize},posns{i*dimSize+1}) | i in 0 .. numParticles-1 };
37    
38    

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

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