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

fix createPartitionBoundaries binding

parent 0fbef81f
No related branches found
No related tags found
No related merge requests found
...@@ -40,6 +40,7 @@ ...@@ -40,6 +40,7 @@
#include "Field.h" #include "Field.h"
#include "Generator.h" #include "Generator.h"
#include "meshGFaceOptimize.h" #include "meshGFaceOptimize.h"
#include "meshPartition.h"
#endif #endif
std::vector<GModel*> GModel::list; std::vector<GModel*> GModel::list;
...@@ -2325,9 +2326,11 @@ void GModel::classifyFaces(std::set<GFace*> &_faces) ...@@ -2325,9 +2326,11 @@ void GModel::classifyFaces(std::set<GFace*> &_faces)
#endif #endif
} }
#include "meshPartition.h" void GModel::createPartitionBoundaries(int createGhostCells)
static void createPartitionBoundaries_binding(GModel *model, int createGhostCells) { {
CreatePartitionBoundaries(model, createGhostCells); #if defined(HAVE_CHACO) || defined(HAVE_METIS)
CreatePartitionBoundaries(this, createGhostCells);
#endif
} }
#include "Bindings.h" #include "Bindings.h"
...@@ -2501,8 +2504,9 @@ void GModel::registerBindings(binding *b) ...@@ -2501,8 +2504,9 @@ void GModel::registerBindings(binding *b)
"extrusion height."); "extrusion height.");
cm->setArgNames("{list of entities}","height",NULL); cm->setArgNames("{list of entities}","height",NULL);
cm = cb->addMethod("createPartitionBoundaries", &createPartitionBoundaries_binding); cm = cb->addMethod("createPartitionBoundaries", &GModel::createPartitionBoundaries);
cm->setDescription("Assigns partition tags to boundary elements. Should be called only after the partitions have been assigned"); cm->setDescription("Assigns partition tags to boundary elements. Should be called "
cm->setArgNames("gmodel","createGhostCells",NULL); "only after the partitions have been assigned");
cm->setArgNames("createGhostCells",NULL);
} }
...@@ -360,6 +360,9 @@ class GModel ...@@ -360,6 +360,9 @@ class GModel
// mesh the model // mesh the model
int mesh(int dimension); int mesh(int dimension);
// create partition boundaries
void createPartitionBoundaries(int createGhostCells);
// fill the vertex arrays, given the current option and data // fill the vertex arrays, given the current option and data
void fillVertexArrays(); void fillVertexArrays();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment