Changeset 14440
- Timestamp:
- 03/11/13 14:48:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/exp/flowlines.m
r14297 r14440 38 38 39 39 %check seed points 40 %tria=TriaSearch(index,x,y,x0,y0);41 tria=tsearch(x,y,index,x0,y0);40 tria=TriaSearch(index,x,y,x0,y0); 41 %tria=tsearch(x,y,index,x0,y0); 42 42 pos=find(isnan(tria)); 43 43 x0(pos)=[]; … … 70 70 %find current triangle 71 71 queue=find(~done); 72 %tria=TriaSearch(index,x,y,X(queue),Y(queue));73 tria=tsearch(x,y,index,X(queue),Y(queue));72 tria=TriaSearch(index,x,y,X(queue),Y(queue)); 73 %tria=tsearch(x,y,index,X(queue),Y(queue)); 74 74 75 75 %check that the point is actually inside a triangle of the mesh … … 112 112 113 113 %same process but reverse (vel=-vel) to have a vcomplete flow line 114 queue=[]; 114 115 counter=1; 115 116 X=x0; Y=y0; … … 120 121 %find current triangle 121 122 queue=find(~done); 122 %tria=TriaSearch(index,x,y,X(queue),Y(queue));123 tria=tsearch(x,y,index,X(queue),Y(queue));123 tria=TriaSearch(index,x,y,X(queue),Y(queue)); 124 %tria=tsearch(x,y,index,X(queue),Y(queue)); 124 125 125 126 %check that the point is actually inside a triangle of the mesh
Note:
See TracChangeset
for help on using the changeset viewer.