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/gradient2-x1/gradient2-x1.diderot
ViewVC logotype

Diff of /branches/vis15/src/tests/rtest/tests/gradient2-x1/gradient2-x1.diderot

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

revision 4434, Fri Aug 19 16:45:13 2016 UTC revision 4435, Fri Aug 19 16:59:34 2016 UTC
# Line 1  Line 1 
1    // NOTE: this is a poor test because these two images only slightly overllap
2  field#1(2)[] s2= image ("../../data/parab/parab2-150.nrrd") ⊛ ctmr;  field#1(2)[] s2= image ("../../data/parab/parab2-150.nrrd") ⊛ ctmr;
3  field#1(2)[] t2=  image("../../data/ddro-80.nrrd") ⊛ ctmr;  field#1(2)[] t2=  image("../../data/ddro-80.nrrd") ⊛ ctmr;
4    
5  int imgSizeX =5;  int imgSizeX =5;
6  int imgSizeY = 5;  int imgSizeY = 5;
7    
   
8  strand tensorTest (int xi,int yi)  strand tensorTest (int xi,int yi)
9  {  {
10      vec2 pos2 = [xi,yi];      vec2 pos2 = [xi,yi];
# Line 13  Line 13 
13    
14         update         update
15      {      {
16          if (inside(pos2,s2))          if (inside(pos2, (s2+t2))) {
         {  
   
17              out=∇(s2+t2)(pos2);//lhs              out=∇(s2+t2)(pos2);//lhs
             //  out=(∇s2+∇t2)(pos2);//rhs  
18          }          }
19      stabilize;      stabilize;
20    }    }

Legend:
Removed from v.4434  
changed lines
  Added in v.4435

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