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

SCM Repository

[diderot] Annotation of /branches/pure-cfg/test/abexit.diderot
ViewVC logotype

Annotation of /branches/pure-cfg/test/abexit.diderot

Parent Directory Parent Directory | Revision Log Revision Log


Revision 899 - (view) (download)

1 : glk 899
2 :     // abexit: debugging unexpected exit from Diderot program
3 :    
4 :     vec3 orig = [0.0, 0.0, 10.0];
5 :     vec3 uVec = [1.0, 0.0, 0.0];
6 :     image(3)[] vol = load("../data/quad-patches-pad.nrrd");
7 :     field#2(3)[] F = vol ⊛ bspln3;
8 :    
9 :     strand RayCast (int ui, int vi)
10 :     {
11 :     real uu = lerp(-0.5, 109.5, -0.5, real(ui), 198.5);
12 :     output real out = 0.0;
13 :    
14 :     update
15 :     {
16 :     vec3 pos = orig + uu*uVec;
17 :     // HEY (BUG): this program can't run; this is the info from gdb (below)
18 :     // NOTE: if you remove the "inside" test; then it does run w/out problems
19 :     // (gdb) run
20 :     // Starting program: /Users/gk/diderot/diderot/pure-cfg/test/abexit
21 :     // warning: posix_spawn failed, trying execvp, error: 86
22 :     // Reading symbols for shared libraries ++. done
23 :     // initializing globals ...
24 :     //
25 :     // Program exited with code 01.
26 :     // (gdb)
27 :     if (inside (pos,F)) {
28 :     out = uu;
29 :     }
30 :     stabilize;
31 :     }
32 :     }
33 :    
34 :     initially [ RayCast(ui, vi) | vi in 0..199, ui in 0..199 ];

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