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

[bindings] add import of deps in module setup

parent 2e2dde6f
No related branches found
No related tags found
No related merge requests found
......@@ -39,6 +39,7 @@ PYBIND11_PLUGIN(__assembler)
py::module::import("dune.xt.grid");
py::module::import("dune.xt.functions");
py::module::import("dune.xt.la");
py::module::import("dune.gdt.__spaces");
DUNE_GDT_SPACES_CONSTRAINTS_BIND(m);
DUNE_GDT_ASSEMBLER_SYSTEM_BIND(m);
......
......@@ -38,6 +38,8 @@ PYBIND11_PLUGIN(__discretefunction)
py::module::import("dune.xt.grid");
py::module::import("dune.xt.functions");
py::module::import("dune.xt.la");
py::module::import("dune.gdt.__spaces");
py::module::import("dune.gdt.__spaces_block");
DUNE_GDT_DISCRETEFUNCTION_DEFAULT_BIND(m);
......
......@@ -38,6 +38,7 @@ PYBIND11_PLUGIN(__functionals_elliptic_ipdg)
py::module::import("dune.xt.grid");
py::module::import("dune.xt.functions");
py::module::import("dune.xt.la");
py::module::import("dune.gdt.__spaces");
// alu_fem_istl.cc
#if HAVE_DUNE_ALUGRID && HAVE_DUNE_FEM && HAVE_DUNE_ISTL
......
......@@ -38,6 +38,7 @@ PYBIND11_PLUGIN(__functionals_l2)
py::module::import("dune.xt.grid");
py::module::import("dune.xt.functions");
py::module::import("dune.xt.la");
py::module::import("dune.gdt.__spaces");
// alu_fem_istl.cc
#if HAVE_DUNE_ALUGRID && HAVE_DUNE_FEM && HAVE_DUNE_ISTL
......
......@@ -30,14 +30,15 @@ PYBIND11_PLUGIN(__local_elliptic_ipdg_operators)
namespace py = pybind11;
using namespace pybind11::literals;
Dune::XT::Common::bindings::addbind_exceptions(m);
py::module m("__local_elliptic_ipdg_operators", "dune-gdt");
Dune::XT::Common::bindings::addbind_exceptions(m);
py::module::import("dune.xt.common");
py::module::import("dune.xt.grid");
py::module::import("dune.xt.functions");
py::module::import("dune.xt.la");
py::module::import("dune.gdt.__spaces");
DUNE_GDT_LOCAL_ELLIPTIC_IPDG_OPERATORS_BIND(m);
......
......@@ -38,6 +38,7 @@ PYBIND11_PLUGIN(__operators_elliptic_ipdg)
py::module::import("dune.xt.grid");
py::module::import("dune.xt.functions");
py::module::import("dune.xt.la");
py::module::import("dune.gdt.__spaces");
// alu_fem_istl.cc
#if HAVE_DUNE_ALUGRID && HAVE_DUNE_FEM && HAVE_DUNE_ISTL
......
......@@ -38,6 +38,7 @@ PYBIND11_PLUGIN(__operators_elliptic)
py::module::import("dune.xt.grid");
py::module::import("dune.xt.functions");
py::module::import("dune.xt.la");
py::module::import("dune.gdt.__spaces");
DUNE_GDT_OPERATORS_ELLIPTIC_BIND_FEM_ISTL(m);
......
......@@ -38,6 +38,7 @@ PYBIND11_PLUGIN(__spaces_block)
py::module::import("dune.xt.grid");
py::module::import("dune.xt.functions");
py::module::import("dune.xt.la");
py::module::import("dune.gdt.__spaces");
DUNE_GDT_SPACES_BLOCK_BIND(m);
......
......@@ -39,6 +39,7 @@ PYBIND11_PLUGIN(__projections)
py::module::import("dune.xt.grid");
py::module::import("dune.xt.functions");
py::module::import("dune.xt.la");
py::module::import("dune.gdt.__spaces");
DUNE_GDT_PROJECTIONS_BIND(m);
DUNE_GDT_PROJECTIONS_DIRICHLET_BIND(m);
......
......@@ -17,13 +17,12 @@ _test_logger_methods = list()
_init_mpi_methods = list()
_other_modules = ('xt.common', 'xt.grid', 'xt.functions', 'xt.la')
# the following ordering is not arbitrary
_gdt_modules = ['spaces', # is required by most others (aka: needs to be loaded first)
_gdt_modules = ['spaces',
'spaces_block',
'local_elliptic_ipdg_operators', # required by assembler
'assembler', # requires spaces and is required by others
'assembler',
'discretefunction',
'projections',
'local_elliptic_ipdg_operators',
'functionals_elliptic_ipdg',
'functionals_l2',
'operators_elliptic',
......
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