Skip to content

Commit 00888ce

Browse files
committed
api: prevent evaluated derivatives to be re-evaluted
1 parent 74c6f8e commit 00888ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

devito/types/basic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -984,7 +984,7 @@ def c0(self):
984984
def _eval_deriv(self):
985985
return self
986986

987-
@property
987+
@cached_property
988988
def _grid_map(self):
989989
"""
990990
Mapper of off-grid interpolation points indices for each dimension.

0 commit comments

Comments
 (0)