Skip to content

Commit 6856380

Browse files
committed
fix memoization in a couple of spots
1 parent 05ce7d1 commit 6856380

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
@@ -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
@@ -314,7 +314,7 @@ def _apply_elementwise_reduction(
314314
)
315315
)
316316
else:
317-
@memoize_in(actx, (_apply_elementwise_reduction,
317+
@memoize_in(actx, (_apply_elementwise_reduction, dd,
318318
"elementwise_%s_prg" % op_name))
319319
def elementwise_prg():
320320
# FIXME: This computes the reduction value redundantly for each

0 commit comments

Comments
 (0)