Skip to content
Snippets Groups Projects
Commit 5ce2917e authored by Andreas Dedner's avatar Andreas Dedner
Browse files

improve registry of FieldVector/FieldMatrix now that they are not preregistered

parent bb461d96
No related branches found
No related tags found
1 merge request!140Feature/add python bindings
Pipeline #26002 passed
......@@ -10,8 +10,7 @@
#include <dune/geometry/referenceelements.hh>
#include <dune/geometry/type.hh>
#include <dune/python/common/fvector.hh>
#include <dune/python/common/fmatrix.hh>
#include <dune/python/common/fvecmatregistry.hh>
#include <dune/python/geometry/quadraturerules.hh>
#include <dune/python/pybind11/pybind11.h>
......@@ -101,8 +100,8 @@ namespace Dune
static const std::size_t dimension = RefElement::dimension;
typedef typename RefElement::ctype ctype;
registerFieldVector<ctype,dimension>( module );
registerFieldMatrix<ctype,dimension,dimension>( module );
registerFieldVecMat<FieldVector<ctype,dimension>>::apply();
registerFieldVecMat<FieldMatrix<ctype,dimension,dimension>>::apply();
cls.def_property_readonly( "dimension", [] ( pybind11::object ) { return pybind11::int_( RefElement::dimension ); } );
......
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