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

SCM Repository

[diderot] View of /branches/vis15/src/tests/ertest/test1/fieldDotTensor/fieldDotTensor.diderot
ViewVC logotype

View of /branches/vis15/src/tests/ertest/test1/fieldDotTensor/fieldDotTensor.diderot

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4135 - (download) (annotate)
Fri Jul 1 14:22:22 2016 UTC (3 years, 1 month ago) by jhr
File size: 586 byte(s)
  Output should be grid, not collection
field#2(3)[3] M = image("../../data/const-curl3d.nrrd") ⊛ bspln3;
    tensor [3] t=[1,0,0];
   // field#2(3)[] F = M • t;
    field#2(3)[] F = t• M ;

int stepsMax = 10;
real epsilon = 0.000001;
int sz=5;

strand RootFind(real xi,real xj, real xk) {
   output vec3 out = [xi,xj,xk];
   int steps = 0;
   real l=F(out);
   update {
      stabilize;
   }
}

initially [ RootFind(lerp(-2, 2, -0.5, ui, sz-0.5),
                     lerp(-2, 2, -0.5, vi, sz-0.5),
                     lerp(-2, 2, -0.5, wi, sz-0.5))
            | wi in 0..(sz-1), vi in 0..(sz-1), ui in 0..(sz-1) ];

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