Changeset 5392
- Timestamp:
- 08/19/10 08:22:11 (15 years ago)
- Location:
- issm/trunk/src/m/utils/Exp
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/utils/Exp/flowlines.m
r5357 r5392 39 39 %check seed points 40 40 tria=TriaSearch(index,x,y,x0,y0); 41 if isnan(tria), 42 error('flowlines error message: seed point is not inside mesh!');43 end 41 pos=find(isnan(tria)); 42 x0(pos)=[]; 43 y0(pos)=[]; 44 44 45 45 %initialize other variables … … 69 69 %find current triangle 70 70 queue=find(~done); 71 tria= tsearch(x,y,index,X(queue),Y(queue));71 tria=TriaSearch(index,x,y,X(queue),Y(queue)); 72 72 73 73 %check that the point is actually inside a triangle of the mesh … … 81 81 tria(listnan)=[]; 82 82 queue(listnan)=[]; 83 84 if isempty(tria), 85 break; 86 end 83 87 84 88 %velocity of the current triangle and norm it … … 114 118 %find current triangle 115 119 queue=find(~done); 116 tria= tsearch(x,y,index,X(queue),Y(queue));120 tria=TriaSearch(index,x,y,X(queue),Y(queue)); 117 121 118 122 %check that the point is actually inside a triangle of the mesh … … 126 130 tria(listnan)=[]; 127 131 queue(listnan)=[]; 132 133 if isempty(tria), 134 break; 135 end 128 136 129 137 %velocity of the current triangle and norm it
Note:
See TracChangeset
for help on using the changeset viewer.