From 98f8c1ef5208a450b755133c8e6cfd4df7ac678a Mon Sep 17 00:00:00 2001 From: "James R. Maddison" Date: Wed, 18 Dec 2024 17:42:54 +0000 Subject: [PATCH] Update firedrake/interpolation.py Co-authored-by: David A. Ham --- firedrake/interpolation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firedrake/interpolation.py b/firedrake/interpolation.py index 449c4ff4d4..04aced69d6 100644 --- a/firedrake/interpolation.py +++ b/firedrake/interpolation.py @@ -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()