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

pep8

parent fe4930cc
No related branches found
No related tags found
No related merge requests found
......@@ -12,7 +12,7 @@ def mixin_base(mixintype, name):
def _dec(cls):
_mixin_registry[mixintype][name] = cls
return cls
return _dec
......
......@@ -3,6 +3,7 @@
# Trigger some imports that are needed to have all backend implementations visible
# to the selection mechanisms
class PDELabInterface(object):
def __init__(self):
# The visitor instance will be registered by its init method
......
......@@ -188,7 +188,7 @@ class GenericBasisMixin(BasisMixinBase):
basis = self.implement_basis(sub_element, restriction, 0, context='trial')
basisindex = get_pymbolic_indices(basis)[:-1]
#TODO get rid ot this!
# TODO get rid ot this!
if get_form_option("blockstructured"):
from dune.codegen.blockstructured.argument import pymbolic_coefficient
coeff = pymbolic_coefficient(container, lfs, sub_element, basisindex)
......
......@@ -146,7 +146,7 @@ class GenericPDELabGeometryMixin(GeometryMixinBase):
name = restricted_name("jit", restriction)
self.define_jacobian_inverse_transposed(name, restriction)
return prim.Subscript(prim.Variable(name), (j,i))
return prim.Subscript(prim.Variable(name), (j, i))
def define_jacobian_inverse_transposed(self, name, restriction):
dim = world_dimension()
......@@ -231,7 +231,6 @@ class AxiparallelGeometryMixin(GenericPDELabGeometryMixin):
return jac
def facet_area(self, o):
# This is not 100% correct, but in practice structured grid implementations are not
# embedded into higher dimensional world space.
......
......@@ -6,4 +6,4 @@ from dune.codegen.pdelab import PDELabInterface
class SumFactInterface(PDELabInterface):
pass
\ No newline at end of file
pass
......@@ -66,7 +66,7 @@ class SumfactMultiLinearGeometryMixin(GenericPDELabGeometryMixin):
name = restricted_name(self._jacobian_inverse(), restriction)
self.define_jacobian_inverse(name, restriction)
return prim.Subscript(prim.Variable(name), (i,j))
return prim.Subscript(prim.Variable(name), (i, j))
def _jacobian_determinant(self):
return "detjac"
......@@ -312,6 +312,7 @@ class SumfactEqudistantGeometryMixin(EquidistantGeometryMixin, SumfactAxiParalle
self.indices = None
return prim.Subscript(prim.Variable(lowcorner), (index,)) + x * prim.Subscript(prim.Variable(meshwidth), (index,))
@iname
def global_corner_iname(restriction):
name = get_counted_variable(restricted_name("global_corneriname", restriction))
......@@ -471,4 +472,4 @@ def _name_jacobian(i, j, restriction, visitor):
def normalize(expr, dim):
return prim.Call(prim.Variable("sqrt"), (prim.Sum(tuple(expr[i]*expr[i] for i in range(dim))),))
return prim.Call(prim.Variable("sqrt"), (prim.Sum(tuple(expr[i] * expr[i] for i in range(dim))),))
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