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

fix crash and warn about experimental nature of this algo

parent 467c45e6
No related branches found
No related tags found
No related merge requests found
...@@ -184,6 +184,7 @@ int PartitionMeshFace(std::list<GFace*> &cFaces, meshPartitionOptions &options) ...@@ -184,6 +184,7 @@ int PartitionMeshFace(std::list<GFace*> &cFaces, meshPartitionOptions &options)
int RenumberMeshElements(std::vector<MElement*> &elements, meshPartitionOptions &options) int RenumberMeshElements(std::vector<MElement*> &elements, meshPartitionOptions &options)
{ {
Msg::Warning("Mesh renumbering is still experimental...");
if (elements.size() < 3) return 1; if (elements.size() < 3) return 1;
GModel *tmp_model = new GModel(); GModel *tmp_model = new GModel();
std::set<MVertex *> setv; std::set<MVertex *> setv;
...@@ -220,6 +221,8 @@ int RenumberMeshElements(std::vector<MElement*> &elements, meshPartitionOptions ...@@ -220,6 +221,8 @@ int RenumberMeshElements(std::vector<MElement*> &elements, meshPartitionOptions
gr->pyramids.push_back((MPyramid*)(*it)); gr->pyramids.push_back((MPyramid*)(*it));
} }
tmp_model->add(gr); tmp_model->add(gr);
RenumberMesh(tmp_model, options, elements);
tmp_model->remove(gr);
} }
delete tmp_model; delete tmp_model;
return 1; return 1;
......
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