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

SCM Repository

[diderot] Annotation of /branches/vis12/test/bug1.diderot
ViewVC logotype

Annotation of /branches/vis12/test/bug1.diderot

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1859 - (view) (download)

1 : nseltzer 1855 // Doesn't compile without the --exec option.
2 :     // It's a problem with the input function for p
3 :     // Input seems to work for ints, but not reals or vecs.
4 : jhr 1859 //
5 :     // Fixed [jhr; 2012-04-20]
6 : nseltzer 1855
7 :    
8 : jhr 1859 input vec3 x = [0.0, 0.0, 0.0];
9 : nseltzer 1855 input real p = 2.5;
10 :    
11 :     strand R (int i, int j, int k)
12 :     {
13 :    
14 : jhr 1859 output vec3 t = [p * real(i), p * real(j), p * real(k)] + x;
15 :     update
16 :     {
17 :     stabilize;
18 :     }
19 : nseltzer 1855 }
20 :    
21 :     initially [ R(i, j, k) | i in 0..60, j in 0..60 , k in 0..60];

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