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

SCM Repository

[diderot] Annotation of /branches/charisee/ertest/tests/gradient3-x2/gradient3-x2.diderot
ViewVC logotype

Annotation of /branches/charisee/ertest/tests/gradient3-x2/gradient3-x2.diderot

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3066 - (view) (download)

1 : cchiw 3066 field#2(3)[] s3 = image("../../../data/vfrhand-nohip.nhdr")⊛ bspln3;
2 :     field#2(3)[] t3 = bspln3 ⊛ image("../../../data/txs.nrrd");
3 : cchiw 2859
4 :     int imgSizeX =5;
5 :     int imgSizeY = 5;
6 :     int imgSizeZ = 5;
7 :    
8 :     strand tensorTest (int xi,int yi,int zi)
9 :     {
10 :     vec3 pos3 = [xi,yi,zi];
11 :    
12 :     output tensor[3] out=[99,99,99];
13 :    
14 :     update
15 :     {
16 :     if (inside(pos3,s3))
17 :     {
18 :     out=(∇(s3*t3))(pos3);//lhs
19 :     // out=((∇s3)*t3+ (∇t3)*s3)(pos3);//rhs
20 :     }
21 :     stabilize;
22 :     }
23 :     }
24 :    
25 :     initially [ tensorTest(xi, yi, zi) | zi in 0..(imgSizeZ-1), yi in 0..(imgSizeY-1), xi in 0..(imgSizeX-1) ];

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