Skip to content

Commit 42cb439

Browse files
committed
api: prevent evaluated derivatives to be re-evaluted
1 parent ddb2459 commit 42cb439

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

devito/types/basic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1011,7 +1011,7 @@ def c0(self):
10111011
def _eval_deriv(self):
10121012
return self
10131013

1014-
@property
1014+
@cached_property
10151015
def _grid_map(self):
10161016
"""
10171017
Mapper of off-grid interpolation points indices for each dimension.

0 commit comments

Comments
 (0)