Skip to content

Commit f263415

Browse files
committed
Fix re-evaluation bug in Cartesian gradient of power dimensional fields.
1 parent 191879c commit f263415

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

dedalus/core/operators.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2322,6 +2322,9 @@ def __init__(self, operand, coordsys, out=None):
23222322
if args[i] == 0:
23232323
args[i] = 2*operand
23242324
args[i].args[0] = 0
2325+
original_args = list(args[i].original_args)
2326+
original_args[0] = 0
2327+
args[i].original_args = tuple(original_args)
23252328
bases = self._build_bases(*args)
23262329
args = [convert(arg, bases) for arg in args]
23272330
LinearOperator.__init__(self, *args, out=out)

0 commit comments

Comments
 (0)