Skip to content
Snippets Groups Projects
Commit f5801479 authored by Matthew Collins's avatar Matthew Collins
Browse files

arbitrary block vector size appears to be working

parent a6421f5b
No related branches found
No related tags found
1 merge request!369Feature/add python bindings
......@@ -21,6 +21,7 @@ def loadvec(includes ,typeName ,constructors=None, methods=None):
#this contains the registration functions for the class
includes = includes + ["dune/python/istl/bvector.hh"]
includes = includes + ["dune/python/common/fvector.hh"]
typeHash = "istlbvector_" + hashIt(typeName)
return generatorvec.load(includes ,typeName ,typeHash ,constructors ,methods)
......@@ -43,5 +44,6 @@ def BlockVector(blockSize):
return BlockVector1
typeName = "Dune::BlockVector< Dune::FieldVector< double," + str(blockSize) + " > >"
includes = ["dune/istl/bvector.hh"]
includes = includes + ["dune/common/fmatrix.hh"]
# todo: provide other constructors
return loadvec(includes, typeName).BlockVector
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment