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

SCM Repository

[diderot] Annotation of /branches/ein16/synth/vis/t__t_7__10_2_/t__t_7__10_2_.diderot
ViewVC logotype

Annotation of /branches/ein16/synth/vis/t__t_7__10_2_/t__t_7__10_2_.diderot

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4262 - (view) (download)

1 : cchiw 4262
2 :     field#2(3)[]F0 = c4hexic⊛ image("inputfile_0.nrrd");
3 :     input real scale = 1;
4 :     field#0(3)[3, 3]G = ∇⊗(∇(F0));
5 :     int length =5;
6 :     strand f(int i) {
7 :    
8 :     output tensor [3,3] out = [[0.0, 0.0, 0.0],[0.0, 0.0, 0.0],[0.0, 0.0, 0.0]];
9 :     update {
10 :    
11 :     if(i==0){
12 :     out = G([-0.01, -0.04, -0.23]);
13 :     }
14 :     else if(i==1){
15 :     out = G([-0.01, -0.04, -0.23]);
16 :     }
17 :     else if(i==2){
18 :     out = G([0.16, -0.25, 0.04]);
19 :     }
20 :     else if(i==3){
21 :     out = G([-0.18, -0.34, -0.03]);
22 :     }
23 :     else if(i==4){
24 :     out = G([-0.39, 0.36, 0.27]);
25 :     }
26 :     else if(i==5){
27 :     out = G([-0.18, 0.0, -0.25]);
28 :     }
29 :    
30 :     stabilize;
31 :     }
32 :     }
33 :     initially [ f(i) | i in 0..length];

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