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 1597, Wed Nov 2 13:41:37 2011 UTC revision 1598, Wed Nov 2 13:43:52 2011 UTC
# Line 25  Line 25 
25      int steps = 0;      int steps = 0;
26      real travel = 0.0;      real travel = 0.0;
27      update {      update {
28          if (!inside(pos, F) || steps > stepsMax || travel > travelMax) {          if (!inside(pos, F) || steps > stepsMax || travel > travelMax)
29              die;              die;
         }  
30          real gmag = |∇F(pos)|;          real gmag = |∇F(pos)|;
31          if (gmag == 0.0) {    // can't compute step if |∇F|, so have to bail          if (gmag == 0.0)    // can't compute step if |∇F|, so have to bail
32              die;              die;
         }  
33          vec3 grad = ∇F(pos);          vec3 grad = ∇F(pos);
34          tensor[3,3] hess = ∇⊗∇F(pos);          tensor[3,3] hess = ∇⊗∇F(pos);
35    
   
36          real{3} eval = evals(hess);          real{3} eval = evals(hess);
37          real strn = -eval{1};          real strn = -eval{1};
38          vec3{3} evec = evecs(hess);          vec3{3} evec = evecs(hess);

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

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