Skip to content
Snippets Groups Projects
Commit ad8bb830 authored by Dominic Kempf's avatar Dominic Kempf
Browse files

[bugfix] Fix Vectorbackends for scalar problems

parent 36d400b6
No related branches found
No related tags found
No related merge requests found
...@@ -343,14 +343,14 @@ def typedef_vectorbackend(name, element, root): ...@@ -343,14 +343,14 @@ def typedef_vectorbackend(name, element, root):
include_file("dune/pdelab/backend/istl.hh", filetag="driver") include_file("dune/pdelab/backend/istl.hh", filetag="driver")
if get_option("fastdg") and root: if get_option("fastdg") and root:
blocking = "Dune::PDELab::ISTL::Blocking::fixed" blocking = "Dune::PDELab::ISTL::Blocking::fixed"
if isinstance(element, MixedElement):
blocksize = ""
else:
include_file("dune/pdelab/finiteelement/qkdglagrange.hh", filetag="driver")
blocksize = ", Dune::QkStuff::QkSize<{}, {}>::value".format(element.degree(), get_dimension())
else: else:
blocking = "Dune::PDELab::ISTL::Blocking::none" blocking = "Dune::PDELab::ISTL::Blocking::none"
if isinstance(element, MixedElement):
blocksize = "" blocksize = ""
else:
include_file("dune/pdelab/finiteelement/qkdglagrange.hh", filetag="driver")
blocksize = ", Dune::QkStuff::QkSize<{}, {}>::value".format(element.degree(), get_dimension())
return "using {} = Dune::PDELab::ISTL::VectorBackend<{}{}>;".format(name, blocking, blocksize) return "using {} = Dune::PDELab::ISTL::VectorBackend<{}{}>;".format(name, blocking, blocksize)
......
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