Index: /issm/trunk-jpl/src/c/classes/bamg/Mesh.cpp
===================================================================
--- /issm/trunk-jpl/src/c/classes/bamg/Mesh.cpp	(revision 12875)
+++ /issm/trunk-jpl/src/c/classes/bamg/Mesh.cpp	(revision 12876)
@@ -4764,16 +4764,15 @@
 			NbSwap += vi.Optim(1);          
 			iv++;
-			//      }
-	}
-	if (verbose>3) {
-		_printLine_("   number of points: " << iv);
-		_printLine_("   number of swap to  split internal edges with border vertices: " << NbSwap);
-		nbv = iv;
-	}
-}
-if (NbSplitEdge>nbv-nbvold) _printLine_("WARNING: not enough vertices  to split all internal edges, we lost " << NbSplitEdge - ( nbv-nbvold) << " edges...");
-if (verbose>2) _printLine_("SplitInternalEdgeWithBorderVertices: Number of splited edge " << NbSplitEdge);
-
-return  NbSplitEdge;
+		}
+		if (verbose>3) {
+			_printLine_("   number of points: " << iv);
+			_printLine_("   number of swap to  split internal edges with border vertices: " << NbSwap);
+			nbv = iv;
+		}
+	}
+	if (NbSplitEdge>nbv-nbvold) _printLine_("WARNING: not enough vertices  to split all internal edges, we lost " << NbSplitEdge - ( nbv-nbvold) << " edges...");
+	if (verbose>2) _printLine_("SplitInternalEdgeWithBorderVertices: Number of splited edge " << NbSplitEdge);
+
+	return  NbSplitEdge;
 }
 /*}}}*/
Index: /issm/trunk-jpl/src/c/classes/bamg/typedefs.h
===================================================================
--- /issm/trunk-jpl/src/c/classes/bamg/typedefs.h	(revision 12875)
+++ /issm/trunk-jpl/src/c/classes/bamg/typedefs.h	(revision 12876)
@@ -8,5 +8,5 @@
 	/*Integer coordinates types*/
 	typedef int  Icoor1; 
-	typedef double Icoor2;
+	typedef long Icoor2;
 
 	/*I2 and R2*/
