From be17b670e474c12324a7222deb9bb9faf5b3fb0c Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Sat, 1 Dec 2018 22:55:37 -0600 Subject: [PATCH] Help CSE algorithm in P2M --- sumpy/expansion/multipole.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sumpy/expansion/multipole.py b/sumpy/expansion/multipole.py index 92ae80f3..47e33a8c 100644 --- a/sumpy/expansion/multipole.py +++ b/sumpy/expansion/multipole.py @@ -88,7 +88,7 @@ class VolumeTaylorMultipoleExpansionBase(MultipoleExpansionBase): for i, mi in enumerate(coeff_identifiers): result[i] /= (mi_factorial(mi) * rscale ** sum(mi)) else: - avec = avec * rscale**-1 + avec = [sym.UnevaluatedExpr(a * rscale**-1) for a in avec] result = [ mi_power(avec, mi) / mi_factorial(mi) -- GitLab