Skip to content

Commit f8c2318

Browse files
committed
fix check
1 parent efedc48 commit f8c2318

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

firedrake/interpolation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def __init__(self, expr, V,
9797
if isinstance(V, functionspaceimpl.WithGeometry):
9898
# Need to create a Firedrake Argument so that it has a .function_space() method
9999
expr_arg_numbers = {arg.number() for arg in extract_arguments(expr) if not is_dual(arg)}
100-
is_adjoint = len(expr_arg_numbers) and expr_arg_numbers[0] == 0
100+
is_adjoint = len(expr_arg_numbers) and expr_arg_numbers == {0}
101101
V = Argument(V.dual(), 1 if is_adjoint else 0)
102102

103103
target_shape = V.arguments()[0].function_space().value_shape

0 commit comments

Comments
 (0)