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

get_form_option fixup

parent 058db731
No related branches found
No related tags found
No related merge requests found
from dune.perftool.generation import (include_file, from dune.perftool.generation import (include_file,
preamble, preamble,
) )
from dune.perftool.options import (get_form_option, from dune.perftool.options import get_form_option
get_option,
)
from dune.perftool.pdelab.driver import (get_form_ident, from dune.perftool.pdelab.driver import (get_form_ident,
get_trial_element, get_trial_element,
name_initree, name_initree,
...@@ -48,7 +46,7 @@ def define_subsamplinglevel(name): ...@@ -48,7 +46,7 @@ def define_subsamplinglevel(name):
if isinstance(degree, tuple): if isinstance(degree, tuple):
degree = max(degree) degree = max(degree)
if get_form_option("blockstructured"): if get_form_option("blockstructured"):
degree *= get_option("number_of_blocks") degree *= get_form_option("number_of_blocks")
return "Dune::RefinementIntervals {}({}.get<int>(\"vtk.subsamplinglevel\", {}));".format(name, ini, max(degree, 1)) return "Dune::RefinementIntervals {}({}.get<int>(\"vtk.subsamplinglevel\", {}));".format(name, ini, max(degree, 1))
......
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