diff --git a/Mesh/meshGFace.cpp b/Mesh/meshGFace.cpp
index fb95b38ca7cf83a9a1cb54882abb7091b02b290e..ab3ef3a91965e87fb9f28529caee08684c9f4986 100644
--- a/Mesh/meshGFace.cpp
+++ b/Mesh/meshGFace.cpp
@@ -786,7 +786,6 @@ static void modifyInitialMeshForTakingIntoAccountBoundaryLayers(GFace *gf)
 	  if (dv2.length() < 0.03 * dv.length())break;
 	  MQuadrangle *qq = new MQuadrangle(v11,v21,v22,v12);
 	  myCol.push_back(qq);
-	  qq->setPartition(l);
 	  blQuads.push_back(qq);
 	  fprintf(ff2,"SQ (%g,%g,%g,%g,%g,%g,%g,%g,%g,%g,%g,%g){1,1,1,1};\n",
 		  v11->x(),v11->y(),v11->z(),
@@ -827,7 +826,6 @@ static void modifyInitialMeshForTakingIntoAccountBoundaryLayers(GFace *gf)
 	if (v11 != v12){
 	  MQuadrangle *qq = new MQuadrangle(v11,v12,v22,v21);
 	  myCol.push_back(qq);
-	  qq->setPartition(l);
 	  blQuads.push_back(qq);
 	  fprintf(ff2,"SQ (%g,%g,%g,%g,%g,%g,%g,%g,%g,%g,%g,%g){1,1,1,1};\n",
 		  v11->x(),v11->y(),v11->z(),
@@ -838,7 +836,6 @@ static void modifyInitialMeshForTakingIntoAccountBoundaryLayers(GFace *gf)
 	else {
 	  MTriangle *qq = new MTriangle(v,v22,v21);
 	  myCol.push_back(qq);
-	  qq->setPartition(l);
 	  blTris.push_back(qq);
 	  fprintf(ff2,"ST (%g,%g,%g,%g,%g,%g,%g,%g,%g){1,1,1,1};\n",
 		  v->x(),v->y(),v->z(),
diff --git a/Mesh/meshGRegion.cpp b/Mesh/meshGRegion.cpp
index 95fcdffc2488ad3492590c5c0a6af59cc65e960b..22fd6255509692a274afa2c308aa36a13a52ed9c 100644
--- a/Mesh/meshGRegion.cpp
+++ b/Mesh/meshGRegion.cpp
@@ -875,7 +875,6 @@ static bool modifyInitialMeshForTakingIntoAccountBoundaryLayers(GRegion *gr, spl
 	  double dotProd = dot(n_up,n_low);
 	  MPrism *prism = new MPrism(v11,v12,v13,v21,v22,v23);
 	  if (dotProd > 0.2 && prism->skewness() > 0.1){
-	    prism->setPartition(l+1);
 	    blPrisms.push_back(prism);
 	    myCol.push_back(prism);
 	  }
@@ -948,7 +947,6 @@ static bool modifyInitialMeshForTakingIntoAccountBoundaryLayers(GRegion *gr, spl
 	  if (l == 0){
 	    MPrism *prism = new MPrism(v12,v21,v22,v13,v24,v23);
 	    // store the layer the element belongs
-	    prism->setPartition(l+1);
 	    myCol.push_back(prism);
 
 	    blPrisms.push_back(prism);
@@ -957,7 +955,6 @@ static bool modifyInitialMeshForTakingIntoAccountBoundaryLayers(GRegion *gr, spl
 	    MHexahedron *hex = new MHexahedron(v11,v12,v13,v14,v21,v22,v23,v24);
 	    // store the layer the element belongs
 	    myCol.push_back(hex);
-	    hex->setPartition(l+1);
 	    blHexes.push_back(hex);
 	  }
 	}