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

SCM Repository

[diderot] Annotation of /branches/charisee/ertest/test2/curl2-x7/curl2-x7.diderot
ViewVC logotype

Annotation of /branches/charisee/ertest/test2/curl2-x7/curl2-x7.diderot

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3066 - (view) (download)

1 : cchiw 3066 field#2(2)[2] V2= image("../../../data/turb2d.nrrd") ⊛ bspln3;
2 : cchiw 2903 field#1(2)[] c2=∇×V2;
3 :     field#0(2)[2] f2=∇c2;
4 :    
5 :    
6 :     int imgSizeX = 1020;
7 :     int imgSizeY = 561;
8 :     strand tensorTest (int xi,int yi)
9 :     {
10 :    
11 :     vec2 pos2 = [xi,yi];
12 :     output vec2 out=[99,99];
13 :    
14 :     update
15 :     {
16 :     if (inside(pos2,V2))
17 :     {
18 :     out=f2(pos2);
19 :     }
20 :    
21 :     stabilize;
22 :     }
23 :     }
24 :    
25 :     initially [ tensorTest(xi, yi) | yi in 0..(imgSizeY-1), xi in 0..(imgSizeX-1) ];

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