Skip to content
Snippets Groups Projects
Commit d26e9f7f authored by Dr. Felix Tobias Schindler's avatar Dr. Felix Tobias Schindler
Browse files

[boundaryinfo] derive from base in bindings

parent 22ffdc9c
No related branches found
No related tags found
No related merge requests found
...@@ -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);
......
...@@ -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<>());
......
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