Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gmsh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Larry Price
gmsh
Commits
396ebdab
Commit
396ebdab
authored
14 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
fix createPartitionBoundaries binding
parent
0fbef81f
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Geo/GModel.cpp
+10
-6
10 additions, 6 deletions
Geo/GModel.cpp
Geo/GModel.h
+3
-0
3 additions, 0 deletions
Geo/GModel.h
with
13 additions
and
6 deletions
Geo/GModel.cpp
+
10
−
6
View file @
396ebdab
...
@@ -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
);
}
}
This diff is collapsed.
Click to expand it.
Geo/GModel.h
+
3
−
0
View file @
396ebdab
...
@@ -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
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment