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

SCM Repository

[diderot] Annotation of /branches/vis12/bugs/bug008.diderot
ViewVC logotype

Annotation of /branches/vis12/bugs/bug008.diderot

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2169 - (view) (download)

1 : glk 2169
2 :     /*
3 :     BUG: see if you can find the error in this Diderot program, based on:
4 :    
5 :     uncaught exception Match [nonexhaustive match failure]
6 :     raised at common/phase-timer.sml:76.50-76.52
7 :     raised at common/phase-timer.sml:76.50-76.52
8 :     raised at typechecker/typechecker.sml:950.39
9 :     raised at typechecker/util.sml:238.20
10 :     */
11 :    
12 :     int imgSize = 400;
13 :    
14 :     strand LIC (real xx, real yy) {
15 :     vec2 pos = [xx,yy];
16 :     output real out = 0.0;
17 :    
18 :     update {
19 :     out = |pos|;
20 :     stabilize;
21 :     }
22 :    
23 :     }
24 :    
25 :     initially [ LIC(lerp(0.0, 79.0, -0.5, real(xi), real(imgSize)-0.5,
26 :     lerp(0.0, 79.0, -0.5, real(yi), real(imgSize)-0.5)))
27 :     | yi in 0..(imgSize-1), xi in 0..(imgSize-1) ];

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