From 1f5d083695a5fee60484fccac26a84632e6cf7ca Mon Sep 17 00:00:00 2001 From: Tuomas Karna <tuomas.karna@uclouvain.be> Date: Mon, 25 Oct 2010 13:11:27 +0000 Subject: [PATCH] binding createPartitionBoundaries to GModel class in lua --- Geo/GModel.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Geo/GModel.cpp b/Geo/GModel.cpp index dffdfb7804..9b8771f15e 100644 --- a/Geo/GModel.cpp +++ b/Geo/GModel.cpp @@ -2321,6 +2321,10 @@ void GModel::classifyFaces(std::set<GFace*> &_faces) #endif } +#include "meshPartition.h" +static void createPartitionBoundaries_binding(GModel *model, int createGhostCells) { + CreatePartitionBoundaries(model, createGhostCells); +} #include "Bindings.h" @@ -2492,4 +2496,9 @@ void GModel::registerBindings(binding *b) cm->setDescription("create a boundary layer using a given field for the " "extrusion height."); cm->setArgNames("{list of entities}","height",NULL); + + cm = cb->addMethod("createPartitionBoundaries", &createPartitionBoundaries_binding); + cm->setDescription("Assigns partition tags to boundary elements. Should be called only after the partitions have been assigned"); + cm->setArgNames("gmodel","createGhostCells",NULL); + } -- GitLab