From 070984f03cf5a8b3f51a24a265a7d506ae2dec20 Mon Sep 17 00:00:00 2001 From: Pablo Brubeck Date: Fri, 7 Oct 2022 11:55:01 +0100 Subject: [PATCH] Handle form coefficients as an optional kwarg when calling a form --- ufl/form.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ufl/form.py b/ufl/form.py index 767689775..6a3e54a16 100644 --- a/ufl/form.py +++ b/ufl/form.py @@ -359,7 +359,7 @@ def __call__(self, *args, **kwargs): len(args))) repdict.update(zip(arguments, args)) - coefficients = kwargs.pop("coefficients") + coefficients = kwargs.pop("coefficients", None) if kwargs: error("Unknown kwargs %s." % str(list(kwargs)))