Changeset 21322


Ignore:
Timestamp:
10/29/16 16:52:12 (8 years ago)
Author:
Eric.Larour
Message:

CHG: issue warning when we have mutiple clone vertices.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/branches/trunk-larour-NatGeoScience2016/src/m/mesh/meshintersect.m

    r20126 r21322  
    1919        for i=1:length(lats),
    2020                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
    2228        end
Note: See TracChangeset for help on using the changeset viewer.