Index: /issm/trunk-jpl/src/m/mesh/ProfileProjectOntoMesh.m
===================================================================
--- /issm/trunk-jpl/src/m/mesh/ProfileProjectOntoMesh.m	(revision 14332)
+++ /issm/trunk-jpl/src/m/mesh/ProfileProjectOntoMesh.m	(revision 14333)
@@ -53,5 +53,5 @@
 % (profile may start and/or end externally and/or cross holes in the model)
 
-ind=find(node_in_element(:,9)>0);
+ind=find(node_in_element(:,end)>0);
 newx=newx(ind,:);
 newy=newy(ind,:);
