From 7be47b9d2cd81340c4e2ae79fb24fa6dcea5b09a Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner Date: Thu, 5 Jan 2017 15:59:47 +0800 Subject: [PATCH] Fix scaling of center distance in >1D --- pytential/qbx/__init__.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pytential/qbx/__init__.py b/pytential/qbx/__init__.py index baa5a6ba..ad60bb22 100644 --- a/pytential/qbx/__init__.py +++ b/pytential/qbx/__init__.py @@ -326,7 +326,7 @@ class QBXLayerPotentialSource(LayerPotentialSource): @memoize_method def panel_sizes(self, last_dim_length="nsources"): assert last_dim_length in ("nsources", "ncenters", "npanels") - # To get the panel size this does the equivalent of ∫ 1 ds. + # To get the panel size this does the equivalent of (∫ 1 ds)**(1/dim). # FIXME: Kernel optimizations discr = self.density_discr @@ -334,7 +334,7 @@ class QBXLayerPotentialSource(LayerPotentialSource): if last_dim_length == "nsources" or last_dim_length == "ncenters": knl = lp.make_kernel( "{[i,j,k]: 0<=i