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

problem with blockvector not changing values properly

parent ca17591e
No related branches found
No related tags found
1 merge request!369Feature/add python bindings
......@@ -21,7 +21,6 @@ def load(includes ,typeName ,constructors=None, methods=None):
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)
......@@ -61,8 +60,7 @@ def BCRSMatrix(blockSize):
def BlockVector(blockSize):
if blockSize == 1:
return BlockVector1
typeName = "Dune::BlockVector< Dune::FieldVector< double," + str(blockSize) + " > >"
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.
Finish editing this message first!
Please register or to comment