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

SCM Repository

[diderot] Diff of /branches/vis12/bugs/open/bug029.diderot
ViewVC logotype

Diff of /branches/vis12/bugs/open/bug029.diderot

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

revision 2336, Thu Apr 4 16:30:16 2013 UTC revision 2337, Thu Apr 4 18:27:52 2013 UTC
# Line 3  Line 3 
3    output real bar = 0;    output real bar = 0;
4    update {    update {
5      vec2 vv = [a,2*a];      vec2 vv = [a,2*a];
6      tensor[2,2] mm = [vv,2*vv];      tensor[2,2] m22 = [vv,2*vv];
7      // BUG: printing a tensor valued expression should give you something that      tensor[2,3] m23 = [[0,1,2],[3,4,5]];
8      // can be copy-pasted back in as a tensor-value (replace "<>" with "[]")      tensor[3,2] m32 = [[0,1],[2,3],[4,5]];
9        tensor[3,3] m33 = [[0,1,2],[3,4,5],[6,7,8]];
10    
11        // BUG: printing a tensor valued expression should give you
12        // something that can be copy-pasted back into code as a
13        // tensor-value (replace "<>" with "[]")
14      print(vv, "\n");      print(vv, "\n");
15    
16      // BUG: printing tensor[2,2] doesn't work      // BUG: printing tensor[2,2] doesn't work
17      print(mm, "\n");      print(m22, "\n");
18    
19        // BUG: printing tensor[2,3] doesn't work
20        print(m23, "\n");
21    
22        // BUG: printing tensor[3,2] doesn't work
23        print(m32, "\n");
24    
25        // BUG: printing tensor[3,3] doesn't work
26        print(m33, "\n");
27    
28      stabilize;      stabilize;
29    }    }
30  }  }

Legend:
Removed from v.2336  
changed lines
  Added in v.2337

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