Skip to content
Snippets Groups Projects
Commit fc49cd0d authored by Laurent Van Migroet's avatar Laurent Van Migroet
Browse files

PartitionZeroGenus return true ??

warning fix msvc
parent 3e5b39f5
No related branches found
No related tags found
No related merge requests found
...@@ -123,7 +123,7 @@ bool PartitionZeroGenus(std::list<GFace*> &cFaces, int &nbParts){ ...@@ -123,7 +123,7 @@ bool PartitionZeroGenus(std::list<GFace*> &cFaces, int &nbParts){
multiscalePartition *msp = new multiscalePartition(elements, options); multiscalePartition *msp = new multiscalePartition(elements, options);
nbParts = msp->getNumberOfParts(); nbParts = msp->getNumberOfParts();
return true;
} }
int PartitionMeshElements( std::vector<MElement*> &elements, meshPartitionOptions &options){ int PartitionMeshElements( std::vector<MElement*> &elements, meshPartitionOptions &options){
...@@ -131,7 +131,7 @@ int PartitionMeshElements( std::vector<MElement*> &elements, meshPartitionOption ...@@ -131,7 +131,7 @@ int PartitionMeshElements( std::vector<MElement*> &elements, meshPartitionOption
GModel *tmp_model = new GModel(); GModel *tmp_model = new GModel();
GFace *gf = new discreteFace(tmp_model, 1); GFace *gf = new discreteFace(tmp_model, 1);
std::set<MVertex *> setv; std::set<MVertex *> setv;
for (int i=0;i<elements.size();++i) for (unsigned i=0;i<elements.size();++i)
for (int j=0;j<elements[i]->getNumVertices();j++) for (int j=0;j<elements[i]->getNumVertices();j++)
setv.insert(elements[i]->getVertex(j)); setv.insert(elements[i]->getVertex(j));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment