Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-xt
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ag-ohlberger
dune-community
dune-xt
Commits
d26e9f7f
Commit
d26e9f7f
authored
8 years ago
by
Dr. Felix Tobias Schindler
Browse files
Options
Downloads
Patches
Plain Diff
[boundaryinfo] derive from base in bindings
parent
22ffdc9c
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dune/xt/grid/bindings.cc
+2
-0
2 additions, 0 deletions
dune/xt/grid/bindings.cc
dune/xt/grid/boundaryinfo.pbh
+1
-1
1 addition, 1 deletion
dune/xt/grid/boundaryinfo.pbh
with
3 additions
and
1 deletion
dune/xt/grid/bindings.cc
+
2
−
0
View file @
d26e9f7f
...
@@ -32,6 +32,8 @@ struct for_Grid_and_Intersection
...
@@ -32,6 +32,8 @@ struct for_Grid_and_Intersection
static
void
addbind
(
py
::
module
&
m
,
const
std
::
string
&
grid_id
,
const
std
::
string
&
id
)
static
void
addbind
(
py
::
module
&
m
,
const
std
::
string
&
grid_id
,
const
std
::
string
&
id
)
{
{
using
namespace
Dune
::
XT
::
Grid
;
using
namespace
Dune
::
XT
::
Grid
;
pybind11
::
class_
<
BoundaryInfo
<
I
>>
(
m
,
std
::
string
(
"BoundaryInfo__"
+
grid_id
+
id
).
c_str
(),
std
::
string
(
"BoundaryInfo__"
+
grid_id
+
id
).
c_str
());
bind_BoundaryInfo
<
AllDirichletBoundaryInfo
<
I
>>
(
m
,
"AllDirichletBoundaryInfo__"
+
grid_id
+
id
);
bind_BoundaryInfo
<
AllDirichletBoundaryInfo
<
I
>>
(
m
,
"AllDirichletBoundaryInfo__"
+
grid_id
+
id
);
bind_BoundaryInfo
<
AllNeumannBoundaryInfo
<
I
>>
(
m
,
"AllNeumannBoundaryInfo__"
+
grid_id
+
id
);
bind_BoundaryInfo
<
AllNeumannBoundaryInfo
<
I
>>
(
m
,
"AllNeumannBoundaryInfo__"
+
grid_id
+
id
);
bind_BoundaryInfo
<
NormalBasedBoundaryInfo
<
I
>>
(
m
,
"NormalBasedBoundaryInfo__"
+
grid_id
+
id
);
bind_BoundaryInfo
<
NormalBasedBoundaryInfo
<
I
>>
(
m
,
"NormalBasedBoundaryInfo__"
+
grid_id
+
id
);
...
...
This diff is collapsed.
Click to expand it.
dune/xt/grid/boundaryinfo.pbh
+
1
−
1
View file @
d26e9f7f
...
@@ -31,7 +31,7 @@ pybind11::class_<C> bind_BoundaryInfo(pybind11::module& m, const std::string& id
...
@@ -31,7 +31,7 @@ pybind11::class_<C> bind_BoundaryInfo(pybind11::module& m, const std::string& id
namespace py = pybind11;
namespace py = pybind11;
using namespace pybind11::literals;
using namespace pybind11::literals;
py::class_<C> c(m, id.c_str(), id.c_str(), py::metaclass());
py::class_<C
, BoundaryInfo<typename C::IntersectionType>
> c(m, id.c_str(), id.c_str(), py::metaclass());
c.def(py::init<>());
c.def(py::init<>());
...
...
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