diff --git a/sumpy/expansion/local.py b/sumpy/expansion/local.py index 317900fb92c47449ca23de070e1650c04e9f9e02..9e891a2dc48399bfded9e7cb0fc6ed63f38c40e4 100644 --- a/sumpy/expansion/local.py +++ b/sumpy/expansion/local.py @@ -57,7 +57,8 @@ class LineTaylorLocalExpansion(LocalExpansionBase): def get_coefficient_identifiers(self): return list(range(self.order+1)) - def coefficients_from_source(self, avec, bvec): + def coefficients_from_source(self, avec, bvec, rscale): + # no point in heeding rscale here--just ignore it if bvec is None: raise RuntimeError("cannot use line-Taylor expansions in a setting " "where the center-target vector is not known at coefficient " @@ -97,7 +98,8 @@ class LineTaylorLocalExpansion(LocalExpansionBase): .subs("tau", 0) for i in self.get_coefficient_identifiers()] - def evaluate(self, coeffs, bvec): + def evaluate(self, coeffs, bvec, rscale): + # no point in heeding rscale here--just ignore it from pytools import factorial return sym.Add(*( coeffs[self.get_storage_index(i)] / factorial(i) diff --git a/test/test_qbx.py b/test/test_qbx.py index aa86edf876fd9dc9aef4e26c2ce10992cfa73240..3758a5d7b5af4f031dabc9770da884860c585382 100644 --- a/test/test_qbx.py +++ b/test/test_qbx.py @@ -82,8 +82,11 @@ def test_direct(ctx_getter): radius = 7 * h centers = unit_circle * (1 - radius) + expansion_radii = np.ones(n) * radius + strengths = (sigma * h,) - evt, (result_qbx,) = lpot(queue, targets, sources, centers, strengths) + evt, (result_qbx,) = lpot(queue, targets, sources, centers, strengths, + expansion_radii=expansion_radii) eocrec.add_data_point(h, np.max(np.abs(result_ref - result_qbx)))