Skip to content

Commit bd79083

Browse files
committed
fix memoization in a couple of spots
1 parent 22d09f4 commit bd79083

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

grudge/dt_utils.py

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

grudge/reductions.py

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

0 commit comments

Comments
 (0)