From e8c38e74f0668b3d40e6923ebb582be5fc88c554 Mon Sep 17 00:00:00 2001 From: repo sync repo start master --all Date: Wed, 11 Jan 2017 04:46:05 -0600 Subject: [PATCH] CSE: com_args can be empty too. --- sumpy/cse.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sumpy/cse.py b/sumpy/cse.py index f9a4daba..01b61e83 100644 --- a/sumpy/cse.py +++ b/sumpy/cse.py @@ -253,7 +253,7 @@ def match_common_args(func_class, funcs, opt_subs): com_args = arg_tracker.func_to_argset[i].intersection( arg_tracker.func_to_argset[j]) - if len(com_args) == 1: + if len(com_args) <= 1: # This may happen if a set of common arguments was already # combined in a previous iteration. continue -- GitLab