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

SCM Repository

[diderot] Diff of /branches/lamont/test/boids/benchmark/boids.diderot
ViewVC logotype

Diff of /branches/lamont/test/boids/benchmark/boids.diderot

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

revision 3281, Tue Oct 13 17:05:21 2015 UTC revision 3282, Tue Oct 13 19:46:34 2015 UTC
# Line 2  Line 2 
2  real{} initPosns = load("posns.nrrd");  real{} initPosns = load("posns.nrrd");
3  int numBoids = length(initPosns)/2;  int numBoids = length(initPosns)/2;
4  input real boidRadius = 5;  input real boidRadius = 5;
5  input real queryRadius = 10;  input real queryRadius = 30;
6  input real DESIRED_SEPARTION = 15;  input real DESIRED_SEPARTION = 15;
7  input real NEIGHBOR_SEPARTION = 15;  input real NEIGHBOR_SEPARTION = 15;
8    
# Line 15  Line 15 
15  int steps = 0;  int steps = 0;
16  int iterMax = 1000;  int iterMax = 1000;
17  real threshold = 0.30;  real threshold = 0.30;
18  bool hasConverged = false;  int iterMax = 400;
19    
20  function vec2 wrapAround (vec2 pos)  function vec2 wrapAround (vec2 pos)
21  {  {
# Line 216  Line 216 
216  }  }
217  global {  global {
218    steps += 1;    steps += 1;
   hasConverged = all{P.isSatisfied | P in Boid.active};  
219  }  }
220    
221  initially {Boid(i,initVelocities{i*2},initVelocities{i*2+1},initPosns{i*2},  initially {Boid(i,initVelocities{i*2},initVelocities{i*2+1},initPosns{i*2},

Legend:
Removed from v.3281  
changed lines
  Added in v.3282

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