Changeset 21322
- Timestamp:
- 10/29/16 16:52:12 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/branches/trunk-larour-NatGeoScience2016/src/m/mesh/meshintersect.m
r20126 r21322 19 19 for i=1:length(lats), 20 20 distance=sqrt((lat-lats(i)).^2+(long-longs(i)).^2); 21 indices(i)=find(distance<tolerance); 21 s=find(distance<tolerance); 22 if length(s)>1, 23 indices(i)=s(1); 24 warn('one or more vertices on the global mesh were duplicated!'); 25 else 26 indices(i)=s; 27 end 22 28 end
Note:
See TracChangeset
for help on using the changeset viewer.