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

SCM Repository

[diderot] Diff of /benchmarks/programs/ridge3d/bmark-diderot.diderot
ViewVC logotype

Diff of /benchmarks/programs/ridge3d/bmark-diderot.diderot

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1596, Wed Nov 2 13:33:41 2011 UTC revision 1597, Wed Nov 2 13:41:37 2011 UTC
# Line 1  Line 1 
1    /*! \file bmark-diderot.diderot
2     *
3     * \author Gordon Kindlmann
4     */
5    
6    /*
7     * COPYRIGHT (c) 2011 The Diderot Project (http://diderot-language.cs.uchicago.edu)
8     * All rights reserved.
9     */
10    
11  int gridSize = 120;  int gridSize = 120;
12  field#2(3)[] F = bspln3 ⊛ load("../../data/lungcrop.nrrd");  field#2(3)[] F = bspln3 ⊛ load("../../data/lungcrop.nrrd");
# Line 36  Line 45 
45          real sdd = dir•hess•dir;          real sdd = dir•hess•dir;
46          vec3 delta = (0.1 if sdd >= 0.0 else -fdd/sdd)*dir;          vec3 delta = (0.1 if sdd >= 0.0 else -fdd/sdd)*dir;
47          if (|delta| < epsilon) {          if (|delta| < epsilon) {
48             if (strn >= strnMin) {             if (strn >= strnMin)
49               stabilize;               stabilize;
            }  
50             die;             die;
51          }          }
         // BUG: can't have:   else {  
52          pos += delta;          pos += delta;
53          steps += 1;          steps += 1;
54          travel += |delta|;          travel += |delta|;
         // BUG: can't have:   }  
55      }      }
56  }  }
57    

Legend:
Removed from v.1596  
changed lines
  Added in v.1597

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