Index: /issm/trunk/src/m/classes/public/setelementstype.m
===================================================================
--- /issm/trunk/src/m/classes/public/setelementstype.m	(revision 2322)
+++ /issm/trunk/src/m/classes/public/setelementstype.m	(revision 2323)
@@ -61,5 +61,5 @@
 gridonstokes=ones(md.numberofgrids,1);
 gridonstokes(md.elements(nonstokesflag,:))=0;      %non stokes grids
-pos=find(sum(md.spcvelocity(:,1:3),2)==3);         %find all the grids on the boundary of the domain without icefront
+pos=find(sum(md.spcvelocity(:,1:2),2)==2);         %find all the grids on the boundary of the domain without icefront
 gridonstokes(pos)=0;                               %we have to constrain all the boundary of the domain without icefront
 
