Skip to content

Commit 5fffa0b

Browse files
committed
fix memoization in a couple of spots
1 parent 54b81d7 commit 5fffa0b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

grudge/dt_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def characteristic_lengthscales(
9494
methods has been used as a guide. Any concrete time integrator will
9595
likely require scaling of the values returned by this routine.
9696
"""
97-
@memoize_in(dcoll, (characteristic_lengthscales,
97+
@memoize_in(dcoll, (characteristic_lengthscales, dd,
9898
"compute_characteristic_lengthscales"))
9999
def _compute_characteristic_lengthscales():
100100
return actx.freeze(

grudge/reductions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ def _apply_elementwise_reduction(
344344
)
345345
)
346346
else:
347-
@memoize_in(actx, (_apply_elementwise_reduction,
347+
@memoize_in(actx, (_apply_elementwise_reduction, dd,
348348
"elementwise_%s_prg" % op_name))
349349
def elementwise_prg():
350350
# FIXME: This computes the reduction value redundantly for each

0 commit comments

Comments
 (0)