From 15b7c8df94822fbca9e688d8c5f494fa91dc4086 Mon Sep 17 00:00:00 2001 From: Matt Wala Date: Sun, 5 Jul 2020 14:19:19 -0500 Subject: [PATCH] Fix CI failures on master due to recent Sumpy P2P API changes --- pytential/qbx/direct.py | 6 +++++- setup.py | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/pytential/qbx/direct.py b/pytential/qbx/direct.py index eac3c7fc..1bcee7c0 100644 --- a/pytential/qbx/direct.py +++ b/pytential/qbx/direct.py @@ -109,7 +109,11 @@ class LayerPotentialOnTargetAndCenterSubset(LayerPotentialBase): def __call__(self, queue, targets, sources, centers, strengths, expansion_radii, **kwargs): - knl = self.get_cached_optimized_kernel() + from sumpy.tools import is_obj_array_like + knl = self.get_cached_optimized_kernel( + targets_is_obj_array=is_obj_array_like(targets), + sources_is_obj_array=is_obj_array_like(sources), + centers_is_obj_array=is_obj_array_like(centers)) for i, dens in enumerate(strengths): kwargs["strength_%d" % i] = dens diff --git a/setup.py b/setup.py index 6c4efcf8..8a3bd5f8 100644 --- a/setup.py +++ b/setup.py @@ -120,7 +120,7 @@ setup(name="pytential", "boxtree>=2019.1", "pymbolic>=2013.2", "loo.py>=2017.2", - "sumpy>=2013.1", + "sumpy>=2020.2beta1", "cgen>=2013.1.2", "pyfmmlib>=2019.1.1", -- GitLab