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

SCM Repository

[diderot] Diff of /branches/pure-cfg/test/zslice-k1k2.diderot
ViewVC logotype

Diff of /branches/pure-cfg/test/zslice-k1k2.diderot

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

revision 890, Wed Apr 20 14:56:43 2011 UTC revision 898, Wed Apr 20 17:22:47 2011 UTC
# Line 35  Line 35 
35             // it assesses if we're within one of the quadratic patches             // it assesses if we're within one of the quadratic patches
36             if (g[2] > 0.10) {             if (g[2] > 0.10) {
37                vec3 n = normalize(g);                vec3 n = normalize(g);
38                // HEY (BUG) using "-∇(∇F)@pos" instead of "-1.0*∇(∇F)@pos" causes:                tensor[3,3] H = -∇(∇F)@pos; // replace with -∇(∇F)@pos
               // uncaught exception Fail [Fail: Error in compiling zslice-k1k2.diderot]  
               //   raised at driver/main.sml:31.39-31.76  
               tensor[3,3] H = -1.0*∇(∇F)@pos; // replace with -∇(∇F)@pos  
39                tensor[3,3] P = identity[3] - n⊗n;                tensor[3,3] P = identity[3] - n⊗n;
40                tensor[3,3] G = (P•H•P)/|g|;                tensor[3,3] G = (P•H•P)/|g|;
41                real disc = max(0.0, sqrt(2.0*|G|^2 - trace(G)^2));                real disc = max(0.0, sqrt(2.0*|G|^2 - trace(G)^2));

Legend:
Removed from v.890  
changed lines
  Added in v.898

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