Index: /issm/branches/trunk-larour-SLPS2022/src/m/mesh/modelmerge3d.m
===================================================================
--- /issm/branches/trunk-larour-SLPS2022/src/m/mesh/modelmerge3d.m	(revision 27071)
+++ /issm/branches/trunk-larour-SLPS2022/src/m/mesh/modelmerge3d.m	(revision 27072)
@@ -57,5 +57,5 @@
 	end
 	%go through elements2 and drop counter on each vertex that is above the x2 and y2 vertices being dropped:
-	indices_nan=isnan(x2);
+	indices_nan=find(isnan(x2));
 	while(~isempty(indices_nan)),
 		% Use the index of the first instance of 'nan' value to remove that element from 'x2', 'y2', and 'z2'
