From 38cd184b847d3e9d1e17496ac061f46d9b43cc01 Mon Sep 17 00:00:00 2001 From: Dominic Kempf <dominic.kempf@iwr.uni-heidelberg.de> Date: Tue, 30 Jan 2018 16:19:54 +0100 Subject: [PATCH] get_form_option fixup --- python/dune/perftool/pdelab/driver/vtk.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/python/dune/perftool/pdelab/driver/vtk.py b/python/dune/perftool/pdelab/driver/vtk.py index a9096628..22b7e1fc 100644 --- a/python/dune/perftool/pdelab/driver/vtk.py +++ b/python/dune/perftool/pdelab/driver/vtk.py @@ -1,9 +1,7 @@ from dune.perftool.generation import (include_file, preamble, ) -from dune.perftool.options import (get_form_option, - get_option, - ) +from dune.perftool.options import get_form_option from dune.perftool.pdelab.driver import (get_form_ident, get_trial_element, name_initree, @@ -48,7 +46,7 @@ def define_subsamplinglevel(name): if isinstance(degree, tuple): degree = max(degree) 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)) -- GitLab