Skip to content

Commit 76f0f1f

Browse files
committed
fix memoization in a couple of spots
1 parent e16c212 commit 76f0f1f

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
@@ -343,7 +343,7 @@ def _apply_elementwise_reduction(
343343
)
344344
)
345345
else:
346-
@memoize_in(actx, (_apply_elementwise_reduction,
346+
@memoize_in(actx, (_apply_elementwise_reduction, dd,
347347
"elementwise_%s_prg" % op_name))
348348
def elementwise_prg():
349349
# FIXME: This computes the reduction value redundantly for each

0 commit comments

Comments
 (0)