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

SCM Repository

[diderot] View of /branches/vis15/src/tests/rtest/tests/gradient2-x2/gradient2-x2.diderot
ViewVC logotype

View of /branches/vis15/src/tests/rtest/tests/gradient2-x2/gradient2-x2.diderot

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4226 - (download) (annotate)
Mon Jul 18 13:48:41 2016 UTC (3 years, 1 month ago) by jhr
File size: 539 byte(s)
  working on merge: ertest clean up, move ertest tests into rtest.
field#1(2)[] s2= image ("../../data/parab/parab2-150.nrrd") ⊛ ctmr;
field#1(2)[] t2=  image("../../data/ddro-80.nrrd") ⊛ ctmr;

int imgSizeX =5;
int imgSizeY = 5;


strand tensorTest (int xi,int yi)
{
    vec2 pos2 = [xi,yi];

    output tensor[2] out=[99,99];
    
       update
    {
        if (inside(pos2,s2))
        {
            out=(∇(s2*t2))(pos2);//lhs
            //out=((∇s2)*t2+ (∇t2)*s2)(pos2);//rhs
        }
    stabilize;
  }
}

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