Skip to content
Snippets Groups Projects
Commit 01231d1f authored by Martin Nolte's avatar Martin Nolte
Browse files

always export BlockVector< FieldVector< 1 > > to Python

parent 3aa611be
No related branches found
No related tags found
1 merge request!369Feature/add python bindings
......@@ -5,8 +5,10 @@
#include <dune/common/fmatrix.hh>
#include <dune/istl/bcrsmatrix.hh>
#include <dune/istl/bvector.hh>
#include <dune/corepy/istl/bcrsmatrix.hh>
#include <dune/corepy/istl/bvector.hh>
#include <dune/corepy/pybind11/pybind11.h>
......@@ -15,6 +17,13 @@ PYBIND11_PLUGIN(_istl)
pybind11::module module( "_istl" );
Dune::CorePy::registerBCRSMatrix< Dune::BCRSMatrix< Dune::FieldMatrix< double, 1, 1 > > >( module );
Dune::CorePy::registerBlockVector< Dune::BlockVector< Dune::FieldVector< double, 1 > > >( module );
// export solver category
pybind11::enum_< Dune::SolverCategory::Category > solverCategory( module, "SolverCategory" );
solverCategory.value( "sequential", Dune::SolverCategory::sequential );
solverCategory.value( "nonoverlapping", Dune::SolverCategory::nonoverlapping );
solverCategory.value( "overlapping", Dune::SolverCategory::overlapping );
return module.ptr();
}
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