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 2544 - (download) (annotate)
Fri Feb 21 14:11:16 2014 UTC (7 years, 9 months ago) by jhr
File size: 1028 byte(s)
  notes on bugs
// 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
//
// The input file is:
//
// 0.58813077 0.88741171 0.89771372
// 0.95441228 0.89153075 0.95227796
// 0.8158375 0.62148893 0.035889585
// 0.64035553 0.69175756 0.95045167
// 0.37868094 0.67286563 0.51851094
// 0.041173328 0.65795147 0.84157413
// 
// the output file is:
//
// <0.588131,0.887412,0.897714>
// <0.891531,0.952278,0.815838>
// <0.035890,0.640356,0.691758>
// <0.378681,0.672866,0.518511>
// <0.657951,0.841574,0.000000>
// <0.000000,0.000000,0.000000>

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