Home My Page Projects Code Snippets Project Openings diderot

# SCM Repository

[diderot] Diff of /branches/charisee/ertest/vispaper/iso3d/iso3d.diderot
 [diderot] / branches / charisee / ertest / vispaper / iso3d / iso3d.diderot

# Diff of /branches/charisee/ertest/vispaper/iso3d/iso3d.diderot

revision 2899, Fri Feb 27 19:51:13 2015 UTC revision 2901, Fri Feb 27 22:54:08 2015 UTC
# Line 21  Line 21
21  //field#1(3)[] F = |∇V| - 1;  //field#1(3)[] F = |∇V| - 1;
22
23  // lifting vector op to constant vector and field: does not work?  // lifting vector op to constant vector and field: does not work?
24  field#1(3)[] F = ∇V • [1,0,0];  //   [iso3d.diderot:24.1-25.0] Error: type error for arguments of binary operator "•"
25    //    found: (field#1(3)[3] * vec3)
26
27    // lifting vector op to constant vector and field: does not work?
28    //field#1(3)[] F = ∇V • [1,0,0];
29    //  [iso3d.diderot:27.18-34] Error: unable to resolve overloaded operator '-'
30    //    argument type is: (field#1(3)[3] * vec3)
31  //field#1(3)[] F = |∇V - [1,0,0]|;  //field#1(3)[] F = |∇V - [1,0,0]|;
32
33  // lifting vector op to two fields  // lifting vector op to two fields
34  // field#1(3)[] F = ∇V • ∇U - 1;  // does work  field#1(3)[] F = ∇V • ∇U - 1;  // does work
35  //field#1(3)[] F = |∇V - ∇U| - 0.01; // never finishes compiling?  //field#1(3)[] F = |∇V - ∇U| - 0.01; // never finishes compiling?
36
37    // trying operation on a normalized gradient; never seems to finish compiling
38    // eventually starts printing things like:
39    //   ../../../bin/diderotc: Error -- unable to map 1071775744 bytes, errno = 12
40    //   ../../../bin/diderotc: Error -- unable to allocate to-space for generation 5; trying smaller size
41    //   ../../../bin/diderotc: Error -- unable to map 1073152000 bytes, errno = 12
42    //   ../../../bin/diderotc: Error -- unable to allocate to-space for generation 5; trying smaller size
43    //field#1(3)[3] N = ∇V/|∇V|;
44    //field#1(3)[] F = ∇•N;
45
46  int grid = 30;  int grid = 30;
47  int stepsMax = 10;  int stepsMax = 10;
48  real epsilon = 0.000001;  real epsilon = 0.000001;

Legend:
 Removed from v.2899 changed lines Added in v.2901