Skip to content
Snippets Groups Projects
Commit 0e394f2d authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

fix compile

parent 0d91d692
No related branches found
No related tags found
No related merge requests found
...@@ -4,7 +4,6 @@ ...@@ -4,7 +4,6 @@
# bugs and problems to the public mailing list <gmsh@geuz.org>. # bugs and problems to the public mailing list <gmsh@geuz.org>.
set(SRC set(SRC
filterElements.cpp
Generator.cpp Generator.cpp
meshGEdge.cpp meshGEdge.cpp
meshGEdgeExtruded.cpp meshGEdgeExtruded.cpp
......
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
#include "multiscalePartition.h" #include "multiscalePartition.h"
#include "meshGFaceLloyd.h" #include "meshGFaceLloyd.h"
#include "boundaryLayersData.h" #include "boundaryLayersData.h"
#include "filterElements.h" //#include "filterElements.h"
inline double myAngle(const SVector3 &a, const SVector3 &b, const SVector3 &d) inline double myAngle(const SVector3 &a, const SVector3 &b, const SVector3 &d)
{ {
...@@ -703,15 +703,14 @@ void modifyInitialMeshForTakingIntoAccountBoundaryLayers(GFace *gf) ...@@ -703,15 +703,14 @@ void modifyInitialMeshForTakingIntoAccountBoundaryLayers(GFace *gf)
} }
} }
for (unsigned int l=0;l<myCol.size();l++)_columns->_toFirst[myCol[l]] = myCol[0]; for (unsigned int l=0;l<myCol.size();l++)_columns->_toFirst[myCol[l]] = myCol[0];
_columns->_elemColumns[myCol[0]] = myCol; _columns->_elemColumns[myCol[0]] = myCol;
} }
} }
fprintf(ff2,"};\n"); fprintf(ff2,"};\n");
fclose(ff2); fclose(ff2);
//filterOverlappingElements (blTris,blQuads,_columns->_elemColumns,_columns->_toFirst);
filterOverlappingElements (blTris,blQuads,_columns->_elemColumns,_columns->_toFirst);
for (unsigned int i = 0; i < blQuads.size();i++){ for (unsigned int i = 0; i < blQuads.size();i++){
addOrRemove(blQuads[i]->getVertex(0),blQuads[i]->getVertex(1),bedges); addOrRemove(blQuads[i]->getVertex(0),blQuads[i]->getVertex(1),bedges);
...@@ -765,6 +764,7 @@ bool meshGenerator(GFace *gf, int RECUR_ITER, ...@@ -765,6 +764,7 @@ bool meshGenerator(GFace *gf, int RECUR_ITER,
bool debug, bool debug,
std::list<GEdge*> *replacement_edges) std::list<GEdge*> *replacement_edges)
{ {
//onlyInitialMesh=true;
BDS_GeomEntity CLASS_F(1, 2); BDS_GeomEntity CLASS_F(1, 2);
BDS_GeomEntity CLASS_EXTERIOR(1, 3); BDS_GeomEntity CLASS_EXTERIOR(1, 3);
std::map<BDS_Point*, MVertex*> recoverMap; std::map<BDS_Point*, MVertex*> recoverMap;
......
...@@ -592,7 +592,7 @@ void collapseEdgePassUnSorted(GFace *gf, BDS_Mesh &m, double MINE_, int MAXNP, ...@@ -592,7 +592,7 @@ void collapseEdgePassUnSorted(GFace *gf, BDS_Mesh &m, double MINE_, int MAXNP,
void smoothVertexPass(GFace *gf, BDS_Mesh &m, int &nb_smooth, bool q) void smoothVertexPass(GFace *gf, BDS_Mesh &m, int &nb_smooth, bool q)
{ {
// FIXME SUPER HACK // FIXME SUPER HACK
// return; // return;
std::set<BDS_Point*,PointLessThan>::iterator itp = m.points.begin(); std::set<BDS_Point*,PointLessThan>::iterator itp = m.points.begin();
while(itp != m.points.end()){ while(itp != m.points.end()){
if(m.smooth_point_centroid(*itp, gf,q)) if(m.smooth_point_centroid(*itp, gf,q))
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
#include "Levy3D.h" #include "Levy3D.h"
#include "directions3D.h" #include "directions3D.h"
#include "discreteFace.h" #include "discreteFace.h"
#include "filterElements.h" //#include "filterElements.h"
#if defined(HAVE_ANN) #if defined(HAVE_ANN)
#include "ANN/ANN.h" #include "ANN/ANN.h"
...@@ -668,11 +668,11 @@ bool AssociateElementsToModelRegionWithBoundaryLayers (GRegion *gr, ...@@ -668,11 +668,11 @@ bool AssociateElementsToModelRegionWithBoundaryLayers (GRegion *gr,
} }
static int getWedge (BoundaryLayerColumns* _columns, MVertex *v1, MVertex *v2, static int getWedge (BoundaryLayerColumns* _columns, MVertex *v1, MVertex *v2,
int indicesVert1 [], int indicesVert2 []) int indicesVert1 [], int indicesVert2 [])
{ {
int N1 = _columns->getNbColumns(v1) ; int N1 = _columns->getNbColumns(v1) ;
int N2 = _columns->getNbColumns(v2) ; int N2 = _columns->getNbColumns(v2) ;
int fanSize = 4; int fanSize = 4;
int NW1 = 0; int NW1 = 0;
int NW2 = 0; int NW2 = 0;
...@@ -686,7 +686,7 @@ static int getWedge (BoundaryLayerColumns* _columns, MVertex *v1, MVertex *v2, ...@@ -686,7 +686,7 @@ static int getWedge (BoundaryLayerColumns* _columns, MVertex *v1, MVertex *v2,
} }
std::map<int,int> one2two; std::map<int,int> one2two;
for (int i=0;i<NW1;i++){ for (int i=0;i<NW1;i++){
...@@ -741,7 +741,7 @@ static int getWedge (BoundaryLayerColumns* _columns, MVertex *v1, MVertex *v2, ...@@ -741,7 +741,7 @@ static int getWedge (BoundaryLayerColumns* _columns, MVertex *v1, MVertex *v2,
count++; count++;
} }
} }
int indexVert1Start = NW1 + fanSize * ( 0 + INDEX1); int indexVert1Start = NW1 + fanSize * ( 0 + INDEX1);
int indexVert1End = NW1 + fanSize * ( 1 + INDEX1); int indexVert1End = NW1 + fanSize * ( 1 + INDEX1);
...@@ -752,7 +752,7 @@ static int getWedge (BoundaryLayerColumns* _columns, MVertex *v1, MVertex *v2, ...@@ -752,7 +752,7 @@ static int getWedge (BoundaryLayerColumns* _columns, MVertex *v1, MVertex *v2,
int k=1; int k=1;
for (int i=indexVert1Start;i< indexVert1End;++i)indicesVert1[k++] = i; for (int i=indexVert1Start;i< indexVert1End;++i)indicesVert1[k++] = i;
indicesVert1[fanSize+1] = vert1End; indicesVert1[fanSize+1] = vert1End;
indicesVert2[0] = vert2Start; indicesVert2[0] = vert2Start;
k = 1; k = 1;
if (indexVert2End > indexVert2Start){ if (indexVert2End > indexVert2Start){
...@@ -763,12 +763,12 @@ static int getWedge (BoundaryLayerColumns* _columns, MVertex *v1, MVertex *v2, ...@@ -763,12 +763,12 @@ static int getWedge (BoundaryLayerColumns* _columns, MVertex *v1, MVertex *v2,
} }
indicesVert2[fanSize+1] = vert2End; indicesVert2[fanSize+1] = vert2End;
// printf("%d %d %d %d %d %d %d %d\n",vert1Start,vert1End,vert2Start,vert2End,indexVert1Start,indexVert1End,indexVert2Start,indexVert2End); // printf("%d %d %d %d %d %d %d %d\n",vert1Start,vert1End,vert2Start,vert2End,indexVert1Start,indexVert1End,indexVert2Start,indexVert2End);
// return 0; // return 0;
return fanSize + 2; return fanSize + 2;
} }
static bool modifyInitialMeshForTakingIntoAccountBoundaryLayers(GRegion *gr) static bool modifyInitialMeshForTakingIntoAccountBoundaryLayers(GRegion *gr)
{ {
...@@ -826,7 +826,7 @@ static bool modifyInitialMeshForTakingIntoAccountBoundaryLayers(GRegion *gr) ...@@ -826,7 +826,7 @@ static bool modifyInitialMeshForTakingIntoAccountBoundaryLayers(GRegion *gr)
} }
if (!myCol.empty()){ if (!myCol.empty()){
for (unsigned int l=0;l<myCol.size();l++)_columns->_toFirst[myCol[l]] = myCol[0]; for (unsigned int l=0;l<myCol.size();l++)_columns->_toFirst[myCol[l]] = myCol[0];
_columns->_elemColumns[myCol[0]] = myCol; _columns->_elemColumns[myCol[0]] = myCol;
} }
} }
} }
...@@ -852,7 +852,7 @@ static bool modifyInitialMeshForTakingIntoAccountBoundaryLayers(GRegion *gr) ...@@ -852,7 +852,7 @@ static bool modifyInitialMeshForTakingIntoAccountBoundaryLayers(GRegion *gr)
MVertex *v2 = e.getVertex(1); MVertex *v2 = e.getVertex(1);
int indices1[256]; int indices1[256];
int indices2[256]; int indices2[256];
int NbW = getWedge (_columns, v1, v2, indices1,indices2); int NbW = getWedge (_columns, v1, v2, indices1,indices2);
for (int i=0;i<NbW-1;i++){ for (int i=0;i<NbW-1;i++){
int i11 = indices1[i]; int i11 = indices1[i];
int i12 = indices1[i+1]; int i12 = indices1[i+1];
...@@ -883,7 +883,7 @@ static bool modifyInitialMeshForTakingIntoAccountBoundaryLayers(GRegion *gr) ...@@ -883,7 +883,7 @@ static bool modifyInitialMeshForTakingIntoAccountBoundaryLayers(GRegion *gr)
v13 = c22._column[l-1]; v13 = c22._column[l-1];
v14 = c21._column[l-1]; v14 = c21._column[l-1];
} }
if (l == 0){ if (l == 0){
MPrism *prism = new MPrism(v12,v21,v22,v13,v24,v23); MPrism *prism = new MPrism(v12,v21,v22,v13,v24,v23);
// store the layer the element belongs // store the layer the element belongs
...@@ -902,13 +902,13 @@ static bool modifyInitialMeshForTakingIntoAccountBoundaryLayers(GRegion *gr) ...@@ -902,13 +902,13 @@ static bool modifyInitialMeshForTakingIntoAccountBoundaryLayers(GRegion *gr)
} }
if (!myCol.empty()){ if (!myCol.empty()){
for (unsigned int l=0;l<myCol.size();l++)_columns->_toFirst[myCol[l]] = myCol[0]; for (unsigned int l=0;l<myCol.size();l++)_columns->_toFirst[myCol[l]] = myCol[0];
_columns->_elemColumns[myCol[0]] = myCol; _columns->_elemColumns[myCol[0]] = myCol;
} }
} }
++ite; ++ite;
} }
filterOverlappingElements (blPrisms,blHexes,_columns->_elemColumns,_columns->_toFirst); //filterOverlappingElements (blPrisms,blHexes,_columns->_elemColumns,_columns->_toFirst);
{ {
FILE *ff2 = fopen ("tato3D.pos","w"); FILE *ff2 = fopen ("tato3D.pos","w");
fprintf(ff2,"View \" \"{\n"); fprintf(ff2,"View \" \"{\n");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment