Skip to content

Commit

Permalink
BUG: fix in-out aliasing issue in OperatorSum, closes odlgroup#1181
Browse files Browse the repository at this point in the history
  • Loading branch information
Holger Kohr committed Oct 21, 2017
1 parent 4326cd4 commit b6893c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions odl/operator/operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -1156,8 +1156,8 @@ def _call(self, x, out=None):
else:
tmp = (self.__tmp_ran if self.__tmp_ran is not None
else self.range.element())
self.left(x, out=out)
self.right(x, out=tmp)
self.left(x, out=tmp)
self.right(x, out=out)
out += tmp

def derivative(self, x):
Expand Down

0 comments on commit b6893c9

Please sign in to comment.