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

SCM Repository

[diderot] View of /branches/vis12/bugs/open/bug023.diderot
ViewVC logotype

View of /branches/vis12/bugs/open/bug023.diderot

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2329 - (download) (annotate)
Fri Mar 22 18:43:34 2013 UTC (6 years, 5 months ago) by jhr
File size: 561 byte(s)
  Add bug023.
// bug023.diderot
//
// Because the runtime representation of a vec3 is actually a vec4, this program
// prints the wrong ouput.
//
// test by
//   echo ======= actual input
//   cat ../data/bug023-pos3.txt
//   echo ======= diderot output
//   ./bug023

vec3{} initPosns = load("../data/bug023-pos3.txt");
int numOfParticles = length(initPosns);

strand Particle (int ii, vec3 pos0) {
    output vec3 pos = pos0;
    update {
      print(pos, "\n");
      stabilize;
    }
}

initially {Particle(ii, initPosns{ii})
           | ii in 0 .. numOfParticles-1 };


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