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

SCM Repository

[diderot] Diff of /branches/vis12/test/curl-turb2d.diderot
ViewVC logotype

Diff of /branches/vis12/test/curl-turb2d.diderot

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

revision 1685, Sun Jan 22 15:23:36 2012 UTC revision 2163, Fri Feb 22 19:31:40 2013 UTC
# Line 8  Line 8 
8  int imgSizeX = 1020;  int imgSizeX = 1020;
9  int imgSizeY = 561;  int imgSizeY = 561;
10    
11  field#1(2)[2] V = load("../data/turb2d.nrrd") ⊛ ctmr;  field#1(2)[2] V = image("../data/turb2d.nrrd") ⊛ ctmr;
12    
13  strand LIC (int xi, int yi) {  strand LIC (int xi, int yi) {
14          real xx = lerp(0.3, 6.75, 0.0, real(xi), real(imgSizeX)-1.0);          real xx = lerp(0.3, 6.75, 0.0, real(xi), real(imgSizeX)-1.0);
15          real yy = lerp(0.6, 3.69, 0.0, real(yi), real(imgSizeY)-1.0);          real yy = lerp(0.6, 3.69, 0.0, real(yi), real(imgSizeY)-1.0);
16          vec2 pos0 = [xx,yy];          vec2 pos0 = [xx,yy];
17    
18          output tensor[2,2] M = ∇⊗V(pos0);          output real crl = ∇×V(pos0);
19    
20          update {          update {
21    

Legend:
Removed from v.1685  
changed lines
  Added in v.2163

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