Index: /issm/branches/trunk-larour-SLPS2022/src/m/mesh/meshintersect3d.m
===================================================================
--- /issm/branches/trunk-larour-SLPS2022/src/m/mesh/meshintersect3d.m	(revision 27069)
+++ /issm/branches/trunk-larour-SLPS2022/src/m/mesh/meshintersect3d.m	(revision 27070)
@@ -46,6 +46,7 @@
 				if count>1000,
 					disp(['could not find a vertex matching vertex ' num2str(i) ' of input mesh!']);
-					disp('Might think about changing tolerance increment');
-					error('');
+					figure(1), plot3(x,y,z,'.'); hold on; plot3(xs,ys,zs,'r.');
+					error('Might think about changing tolerance increment');
+					%use this figure to figure out what's going on: 
 				end
 				tolerance=tolerance+tolincrement;
@@ -55,6 +56,5 @@
 			if tolerance>maxtol, 
 				disp(['found matching vertices ' num2str(s) ' in output mesh for input mesh vertex ' num2str(i) ]);
-				disp(' however, these vertices are farther that the max tolerance allowed!');
-				error('');
+				error(' however, these vertices are farther that the max tolerance allowed!');
 			end
 
