Index: /issm/trunk-jpl/src/c/objects/Bamg/Mesh.cpp
===================================================================
--- /issm/trunk-jpl/src/c/objects/Bamg/Mesh.cpp	(revision 12724)
+++ /issm/trunk-jpl/src/c/objects/Bamg/Mesh.cpp	(revision 12725)
@@ -5321,6 +5321,6 @@
 		int i; 
 		for (i=0;i<Gh.nbv;i++) if (Gh[i].Required()) NbVerticesOnGeomVertex++;
+		printf("\n");
 		if(NbVerticesOnGeomVertex >= maxnbv){
-			delete [] bcurve;
 			_error2_("too many vertices on geometry: " << NbVerticesOnGeomVertex << " >= " << maxnbv);
 		}
@@ -5348,8 +5348,8 @@
 				_assert_(gv->MeshVertexHook); // use of Geom -> Th
 				VertexOnBThVertex[NbVertexOnBThVertex++]=VertexOnVertex(gv->MeshVertexHook,bv);
-				gv->MeshVertexHook->m = bv->m; // for taking the metrix of the background mesh
-			}
-		}
-		_assert_(NbVertexOnBThVertex==NbVerticesOnGeomVertex);
+				gv->MeshVertexHook->m = bv->m; // for taking the metric of the background mesh
+			}
+		}
+		_assert_(NbVertexOnBThVertex==NbVerticesOnGeomVertex); /*This might be due to MaxCornerAngle too small*/
 
 		/*STEP 2: reseed boundary edges*/
