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

pep8 fixes

parent c39a4e02
No related branches found
No related tags found
No related merge requests found
...@@ -29,6 +29,7 @@ def type_domainfield(): ...@@ -29,6 +29,7 @@ def type_domainfield():
typedef_domainfield("DF") typedef_domainfield("DF")
return "DF" return "DF"
def basetype_range(): def basetype_range():
if get_option('opcounter'): if get_option('opcounter'):
from dune.perftool.pdelab.driver.timings import setup_timer from dune.perftool.pdelab.driver.timings import setup_timer
...@@ -253,7 +254,7 @@ def define_gfs(element, is_dirichlet, name): ...@@ -253,7 +254,7 @@ def define_gfs(element, is_dirichlet, name):
gv = name_leafview() gv = name_leafview()
fem = name_fem(element) fem = name_fem(element)
return ["{} {}({}, {});".format(gfstype, name, gv, fem), return ["{} {}({}, {});".format(gfstype, name, gv, fem),
"{}.name(\"{}\");".format(name, name),] "{}.name(\"{}\");".format(name, name)]
@preamble @preamble
......
...@@ -112,7 +112,7 @@ def define_dofestimate(name): ...@@ -112,7 +112,7 @@ def define_dofestimate(name):
geo_factor = 2**get_dimension() geo_factor = 2**get_dimension()
else: else:
if get_dimension() < 3: if get_dimension() < 3:
geo_factor = 3*get_dimension() geo_factor = 3 * get_dimension()
else: else:
# TODO no idea how a generic estimate for 3D simplices looks like # TODO no idea how a generic estimate for 3D simplices looks like
geo_factor = 12 geo_factor = 12
......
...@@ -101,7 +101,6 @@ def define_vector(name, formdata): ...@@ -101,7 +101,6 @@ def define_vector(name, formdata):
return ["{} {}({});".format(vtype, name, gfs), "{} = 0.0;".format(name)] return ["{} {}({});".format(vtype, name, gfs), "{} = 0.0;".format(name)]
@preamble @preamble
def typedef_linearsolver(name): def typedef_linearsolver(name):
include_file("dune/pdelab/backend/istl.hh", filetag="driver") include_file("dune/pdelab/backend/istl.hh", filetag="driver")
......
...@@ -41,6 +41,7 @@ def dump_dof_numbers(stream): ...@@ -41,6 +41,7 @@ def dump_dof_numbers(stream):
ident, ident,
name_trial_gfs()) name_trial_gfs())
@preamble @preamble
def define_timing_stream(name): def define_timing_stream(name):
include_file('fstream', filetag='driver', system=True) include_file('fstream', filetag='driver', system=True)
......
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