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

pep8 compliance

parent 806e90ef
No related branches found
No related tags found
No related merge requests found
......@@ -48,7 +48,6 @@ def constructor_parameter(_type, name, classtag=None, constructortag=None):
assert constructortag
from cgen import Value
gen = generator_factory(item_tags=(classtag, constructortag, "constructor_param"), counted=True, no_deco=True)
return gen(Value(_type, name))
......
......@@ -50,7 +50,7 @@ def default_declaration(name, shape, shape_impl):
t = _temporary_type(shape_impl, shape)
if len(shape_impl) == 0:
# This is a scalar, just return it!
return '{} {}(0.0);'.format(t, name);
return '{} {}(0.0);'.format(t, name)
if shape_impl[0] == 'arr':
return '{} {}{};'.format(t, name, ''.join('[{}]'.format(s) for s in shape))
if shape_impl[0] == 'vec':
......@@ -66,7 +66,7 @@ def temporary_variable(name, **kwargs):
decl_method = kwargs.pop('decl_method', default_declaration)
shape = kwargs.get('shape', ())
shape_impl = kwargs.pop('shape_impl', ('arr',)*len(shape))
shape_impl = kwargs.pop('shape_impl', ('arr',) * len(shape))
decl_method(name, shape, shape_impl)
......
......@@ -6,6 +6,7 @@ from dune.perftool.pdelab.quadrature import (name_quadrature_position,
quadrature_preamble,
)
@preamble
def define_geometry(name):
return "auto {} = eg.geometry();".format(name)
......@@ -38,8 +39,8 @@ def name_dimension():
def define_jacobian_inverse_transposed_temporary(name, shape, shape_impl):
geo = name_geometry()
return "auto {} = {}.jacobianInverseTransposed({{{{ 0.0 }}}});".format(name,
geo,
)
geo,
)
def define_jacobian_inverse_transposed(name):
......@@ -53,6 +54,7 @@ def define_jacobian_inverse_transposed(name):
)
)
@symbol
def name_jacobian_inverse_transposed():
define_jacobian_inverse_transposed("J")
......
......@@ -80,6 +80,7 @@ def class_type_from_cache(classtag):
return basename, basename + tparam_str
@memoize
def measure_specific_details(measure):
# The return dictionary that this memoized method will grant direct access to.
......
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