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

SCM Repository

[diderot] Diff of /branches/vis15/src/tests/lamont-tests/boids.diderot
ViewVC logotype

Diff of /branches/vis15/src/tests/lamont-tests/boids.diderot

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

revision 4496, Sat Sep 3 13:52:11 2016 UTC revision 4497, Sat Sep 3 14:12:36 2016 UTC
# Line 1  Line 1 
1  real[] initVelocities = load("velocities.nrrd");  #version 2
2  real[] initPosns = load("posns.nrrd");  
3    real[] initVelocities = load_sequence("velocities.nrrd");
4    real[] initPosns = load_sequence("posns.nrrd");
5  int numBoids = 100;  int numBoids = 100;
6  input real boidRadius = 5;  input real boidRadius = 5;
7  input real queryRadius = 50;  input real queryRadius = 50;
# Line 122  Line 124 
124     }     }
125  }  }
126    
127  collection {  create_collection {
128    Boid(i, initVelocities{i*2}, initVelocities{i*2+1}, initPosns{i*2}, initPosns{i*2+1})    Boid(i, initVelocities{i*2}, initVelocities{i*2+1}, initPosns{i*2}, initPosns{i*2+1})
129    | i in 0 .. numBoids-1    | i in 0 .. numBoids-1
130  }  }

Legend:
Removed from v.4496  
changed lines
  Added in v.4497

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