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

SCM Repository

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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 899 - (download) (annotate)
Wed Apr 20 18:22:56 2011 UTC (8 years, 6 months ago) by glk
File size: 1035 byte(s)
new disturbing bug
// abexit: debugging unexpected exit from Diderot program

vec3 orig = [0.0, 0.0, 10.0];
vec3 uVec = [1.0, 0.0, 0.0];
image(3)[] vol = load("../data/quad-patches-pad.nrrd");
field#2(3)[] F = vol ⊛ bspln3;

strand RayCast (int ui, int vi)
{
    real uu = lerp(-0.5, 109.5, -0.5, real(ui), 198.5);
    output real out = 0.0;

    update
    {
        vec3 pos = orig + uu*uVec;
        // HEY (BUG): this program can't run; this is the info from gdb (below)
        // NOTE: if you remove the "inside" test; then it does run w/out problems
        //   (gdb) run  
        //   Starting program: /Users/gk/diderot/diderot/pure-cfg/test/abexit 
        //   warning: posix_spawn failed, trying execvp, error: 86
        //   Reading symbols for shared libraries ++. done
        //   initializing globals ...
        //   
        //   Program exited with code 01.
        //   (gdb) 
        if (inside (pos,F)) {
            out = uu;
        }
        stabilize;
    }
}

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