Skip to content

Commit

Permalink
Update firedrake/interpolation.py
Browse files Browse the repository at this point in the history
Co-authored-by: David A. Ham <[email protected]>
  • Loading branch information
jrmaddison and dham authored Dec 18, 2024
1 parent b8c5252 commit 98f8c1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion firedrake/interpolation.py
Original file line number Diff line number Diff line change
Expand Up @@ -859,7 +859,7 @@ def _interpolate(self, *function, output=None, transpose=False, **kwargs):
V = self.V
result = output or firedrake.Function(V)
with function.dat.vec_ro as x, result.dat.vec_wo as out:
if x.id != out.id:
if x is not out:
mul(x, out)
else:
out_ = out.duplicate()
Expand Down

0 comments on commit 98f8c1e

Please sign in to comment.