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 2904, Sat Feb 28 16:17:30 2015 UTC revision 2905, Mon Mar 2 11:57:32 2015 UTC
# Line 20  Line 20
20  // isosurface of |∇V|: works  // isosurface of |∇V|: works
21  //field#1(3)[] F = |∇V| - 1;  //field#1(3)[] F = |∇V| - 1;
22
23    // lifting vector op to two fields
24    //field#1(3)[] F = ∇V • ∇U - 1;  // does work
25    //field#1(3)[] F = |∇V - ∇U| - 0.5; // does work
26
27    //__________________ things that aren't working
28
29  // lifting vector op to constant vector and field: does not work?  // lifting vector op to constant vector and field: does not work?
30  //   [iso3d.diderot:24.1-25.0] Error: type error for arguments of binary operator "•"  //   [iso3d.diderot:24.1-25.0] Error: type error for arguments of binary operator "•"
31  //    found: (field#1(3)[3] * vec3)  //    found: (field#1(3)[3] * vec3)
# Line 28  Line 34
34  // lifting vector op to constant vector and field: does not work?  // lifting vector op to constant vector and field: does not work?
35  //   [iso3d.diderot:27.18-34] Error: unable to resolve overloaded operator '-'  //   [iso3d.diderot:27.18-34] Error: unable to resolve overloaded operator '-'
36  //     argument type is: (field#1(3)[3] * vec3)  //     argument type is: (field#1(3)[3] * vec3)
37  field#1(3)[] F = |∇V - [1,0,0]|;  //field#1(3)[] F = |∇V - [1,0,0]|;

// lifting vector op to two fields
//field#1(3)[] F = ∇V • ∇U - 1;  // does work
//field#1(3)[] F = |∇V - ∇U| - 0.01; // never finishes compiling?
38
39  // trying operation on a normalized gradient; never seems to finish compiling  // trying operation on a normalized gradient; never seems to finish compiling
40  // eventually starts printing things like:  // eventually starts printing things like:
# Line 40  Line 42
42  //   ../../../bin/diderotc: Error -- unable to allocate to-space for generation 5; trying smaller size  //   ../../../bin/diderotc: Error -- unable to allocate to-space for generation 5; trying smaller size
43  //   ../../../bin/diderotc: Error -- unable to map 1073152000 bytes, errno = 12  //   ../../../bin/diderotc: Error -- unable to map 1073152000 bytes, errno = 12
44  //   ../../../bin/diderotc: Error -- unable to allocate to-space for generation 5; trying smaller size  //   ../../../bin/diderotc: Error -- unable to allocate to-space for generation 5; trying smaller size
45  //field#1(3)[3] N = ∇V/|∇V|;  field#1(3)[3] N = ∇V/|∇V|;
46  //field#1(3)[] F = ∇•N;  field#1(3)[] F = ∇•N;
47
48  int grid = 30;  int grid = 30;
49  int stepsMax = 10;  int stepsMax = 10;

Legend:
 Removed from v.2904 changed lines Added in v.2905