Skip to content

Commit

Permalink
Handle form coefficients as an optional kwarg when calling a form (#125)
Browse files Browse the repository at this point in the history
Co-authored-by: David A. Ham <[email protected]>
  • Loading branch information
pbrubeck and dham authored Jan 18, 2023
1 parent 46e9de6 commit 2babe0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ufl/form.py
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ def __call__(self, *args, **kwargs):
raise ValueError(f"Need {len(arguments)} arguments to form(), got {len(args)}.")
repdict.update(zip(arguments, args))

coefficients = kwargs.pop("coefficients")
coefficients = kwargs.pop("coefficients", None)
if kwargs:
raise ValueError(f"Unknown kwargs {list(kwargs)}")

Expand Down

0 comments on commit 2babe0d

Please sign in to comment.