Skip to content

Commit cfd3b44

Browse files
committed
tidy
1 parent 6e279fa commit cfd3b44

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

firedrake/interpolation.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +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}
101-
V = Argument(V.dual(), 1 if is_adjoint else 0)
100+
V = Argument(V.dual(), 1 if expr_arg_numbers == {0} else 0)
102101

103102
target_shape = V.arguments()[0].function_space().value_shape
104103
if expr.ufl_shape != target_shape:

0 commit comments

Comments
 (0)