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

SCM Repository

[diderot] Annotation of /branches/vis12/rtest2/tests/jacob2/jacob2.diderot
ViewVC logotype

Annotation of /branches/vis12/rtest2/tests/jacob2/jacob2.diderot

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3198 - (view) (download)

1 : cchiw 2863
2 : jhr 3198 field#1(2)[2] V2 = image("../../data/const-curl2d.nrrd") ⊛ bspln3;
3 : cchiw 2863
4 :     int imgSizeX = 1020;
5 :     int imgSizeY = 561;
6 :     strand fieldTest (int xi, int yi) {
7 :     real xx = lerp(0.3, 6.75, 0.0, real(xi), real(imgSizeX)-1.0);
8 :     real yy = lerp(0.6, 3.69, 0.0, real(yi), real(imgSizeY)-1.0);
9 :     vec2 pos = [xx,yy];
10 :    
11 :     output tensor[2,2] out=∇⊗V2(pos);//jacobian
12 :    
13 :    
14 :     update
15 :     {
16 :    
17 :     stabilize;
18 :    
19 :     }
20 :     }
21 :    
22 :     initially [ fieldTest(xi, yi) | yi in 0..(imgSizeY-1), xi in 0..(imgSizeX-1)];
23 :    

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