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

SCM Repository

[diderot] Diff of /branches/vis15/src/tests/ertest/test1/outerField2/outerField2.diderot
ViewVC logotype

Diff of /branches/vis15/src/tests/ertest/test1/outerField2/outerField2.diderot

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

revision 4133, Fri Jul 1 14:09:51 2016 UTC revision 4134, Fri Jul 1 14:20:18 2016 UTC
# Line 10  Line 10 
10         vec2 pos = [xx,yy];         vec2 pos = [xx,yy];
11          vec2 mm=pos+pos;          vec2 mm=pos+pos;
12    
13          output tensor[2,2] r=[[99,99],[99,99]];      output tensor[2,2] out = [[99,99],[99,99]];
14        //  output tensor[2,2] r=F(pos)⊗V(pos);//outer product        //  output tensor[2,2] r=F(pos)⊗V(pos);//outer product
15        update        update
16      {      {
17          if(inside(pos, V)){          if(inside(pos, V)){
18                out = (F⊗V)(pos);//outer product
19              r=(F⊗V)(pos);//outer product          }
20            else {
21                out = [[99,99],[99,99]];
22          }          }
         else{r=[[99,99],[99,99]];}  
   
   
23           stabilize;           stabilize;
   
24      }      }
25  }  }
26    

Legend:
Removed from v.4133  
changed lines
  Added in v.4134

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