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

SCM Repository

[diderot] Diff of /branches/vis15/src/tests/rtest/tests/curl2d/curl2d.diderot
ViewVC logotype

Diff of /branches/vis15/src/tests/rtest/tests/curl2d/curl2d.diderot

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

revision 4486, Fri Sep 2 23:59:49 2016 UTC revision 4497, Sat Sep 3 14:12:36 2016 UTC
# Line 6  Line 6 
6  int imgSizeX = 16;  int imgSizeX = 16;
7  int imgSizeY = 16;  int imgSizeY = 16;
8    
9  field#1(2)[2] V = image("../../data/const-curl2d.nrrd") ⊛ bspln3;  field#1(2)[2] V = load_image("../../data/const-curl2d.nrrd") ⊛ bspln3;
10    
11  strand CURL (int xi, int yi) {  strand CURL (int xi, int yi) {
12          real xx = lerp(2.00, 17.0, 0.0, real(xi), real(imgSizeX)-1.0);          real xx = lerp(2.00, 17.0, 0.0, real(xi), real(imgSizeX)-1.0);
# Line 22  Line 22 
22          }          }
23  }  }
24    
25  grid(2) { CURL(xi, yi) | yi in 0..(imgSizeY-1), xi in 0..(imgSizeX-1) }  create_array { CURL(xi, yi) | yi in 0..(imgSizeY-1), xi in 0..(imgSizeX-1) }

Legend:
Removed from v.4486  
changed lines
  Added in v.4497

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