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

SCM Repository

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

Diff of /branches/lamont/test/particle.diderot

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

revision 2083, Thu Nov 8 18:42:05 2012 UTC revision 2091, Mon Nov 12 01:54:01 2012 UTC
# Line 1  Line 1 
1    /*! \file particle.diderot
2     *
3     * \author Lamont Samuels
4     *
5     * This example tests the spatial data structures and querying functions.  It also
6     * serves as a test for loading data sequences.
7     */
8    
9  int worldWidth = 500;  /*
10  int worldHeight = 500;   * COPYRIGHT (c) 2012 The Diderot Project (http://diderot-language.cs.uchicago.edu)
11  int particleRadius = 4;   * All rights reserved.
12     */
13    int{} args = load("positions.nrrd");
14    int nArgs = length(args);
15    int strandSize = 4;
16    
17  // Particle(x,y)  // Particle(x,y)
18  strand Particle (int x, int y) {  strand Particle (int x, int y) {
# Line 13  Line 24 
24    
25      update {      update {
26           int t = 3;           int t = 3;
27           int count = 0;           int count = strandSize;
28           foreach(Particle p in sphere(5)){           foreach(Particle p in sphere(5)){
29              t = p.id;              t = p.id;
30              count = count + 1  + t;              count = count + 1  + t;

Legend:
Removed from v.2083  
changed lines
  Added in v.2091

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