Index: /issm/branches/trunk-larour-NatGeoScience2016/src/m/mesh/meshintersect.m
===================================================================
--- /issm/branches/trunk-larour-NatGeoScience2016/src/m/mesh/meshintersect.m	(revision 21321)
+++ /issm/branches/trunk-larour-NatGeoScience2016/src/m/mesh/meshintersect.m	(revision 21322)
@@ -19,4 +19,10 @@
 	for i=1:length(lats),
 		distance=sqrt((lat-lats(i)).^2+(long-longs(i)).^2);
-		indices(i)=find(distance<tolerance);
+		s=find(distance<tolerance);
+		if length(s)>1,
+			indices(i)=s(1);
+			warn('one or more vertices on the global mesh were duplicated!');
+		else
+			indices(i)=s;
+		end
 	end
