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

SCM Repository

[diderot] View of /branches/vis12/rtest2/tests/outerField2/outerField2.diderot
ViewVC logotype

View of /branches/vis12/rtest2/tests/outerField2/outerField2.diderot

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3198 - (download) (annotate)
Thu Jun 25 11:14:38 2015 UTC (4 years, 2 months ago) by jhr
File size: 809 byte(s)
create a local copy of data sources for rtest2
image(2)[2] Fimg= image("../../data/turb2d.nrrd");
field#1(2)[2] F= Fimg ⊛ ctmr; //support 2
field#1(2)[2] V = image("../../data/const-curl2d.nrrd") ⊛ bspln3;
int imgSizeX = 1020;
int imgSizeY = 561;
strand fieldTest (int xi, int yi) {
       real xx = lerp(0.3, 6.75, 0.0, real(xi), real(imgSizeX)-1.0);
       real yy = lerp(0.6, 3.69, 0.0, real(yi), real(imgSizeY)-1.0);
       vec2 pos = [xx,yy];
        vec2 mm=pos+pos;
        
        output tensor[2,2] out=[[99,99],[99,99]];

      update
    {
        if(inside(pos, V)){
        
            //out=(F⊗V)(pos);//outer product
             out=F(pos)⊗V(pos);//outer product
        }
        else{out=[[99,99],[99,99]];}

     
         stabilize;
 
    }
}

initially [ fieldTest(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