Skip to content

Commit b9c06cb

Browse files
committed
fix: remove redundant flatten in Brinkman kernels
1 parent d6c9730 commit b9c06cb

1 file changed

Lines changed: 2 additions & 10 deletions

File tree

sumpy/kernel.py

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1199,11 +1199,7 @@ def __init__(self,
11991199
else:
12001200
raise NotImplementedError(f"unsupported dimension: '{dim}'")
12011201

1202-
from pymbolic.mapper.flattener import flatten
1203-
1204-
super().__init__(dim,
1205-
expression=flatten(expr),
1206-
global_scaling_const=flatten(scaling))
1202+
super().__init__(dim, expression=expr, global_scaling_const=scaling)
12071203

12081204
object.__setattr__(self, "icomp", icomp)
12091205
object.__setattr__(self, "jcomp", jcomp)
@@ -1339,11 +1335,7 @@ def __init__(self,
13391335
else:
13401336
raise NotImplementedError(f"unsupported dimension: '{dim}'")
13411337

1342-
from pymbolic.mapper.flattener import flatten
1343-
1344-
super().__init__(dim,
1345-
expression=flatten(expr),
1346-
global_scaling_const=flatten(scaling))
1338+
super().__init__(dim, expression=expr, global_scaling_const=scaling)
13471339

13481340
object.__setattr__(self, "icomp", icomp)
13491341
object.__setattr__(self, "jcomp", jcomp)

0 commit comments

Comments
 (0)