Home My Page Projects Code Snippets Project Openings diderot

# SCM Repository

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

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

revision 897, Wed Apr 20 17:21:41 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.897 changed lines Added in v.898