From 1babcea6e0e23ca67af74d6fce4eacd0ce43bdce Mon Sep 17 00:00:00 2001
From: Thomas Toulorge <thomas.toulorge@mines-paristech.fr>
Date: Mon, 2 Jun 2014 10:26:10 +0000
Subject: [PATCH] Removed debug trick (setting of partition) for boundary layer
 elements

---
 Mesh/meshGFace.cpp   | 3 ---
 Mesh/meshGRegion.cpp | 3 ---
 2 files changed, 6 deletions(-)

diff --git a/Mesh/meshGFace.cpp b/Mesh/meshGFace.cpp
index fb95b38ca7..ab3ef3a919 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 95fcdffc24..22fd625550 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);
 	  }
 	}
-- 
GitLab