Skip to content

Commit 61901fc

Browse files
isurufinducer
authored andcommitted
Use non FFT M2L for M2QBXL
1 parent 2997052 commit 61901fc

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

pytential/qbx/__init__.py

+8-1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030
from pytential.source import LayerPotentialSourceBase
3131
from sumpy.expansion import DefaultExpansionFactory as DefaultExpansionFactoryBase
3232

33+
from functools import partial
34+
3335
import logging
3436
logger = logging.getLogger(__name__)
3537

@@ -49,7 +51,12 @@ class DefaultExpansionFactory(DefaultExpansionFactoryBase):
4951
"""A expansion factory to create QBX local, local and multipole expansions
5052
"""
5153
def get_qbx_local_expansion_class(self, kernel):
52-
return self.get_local_expansion_class(kernel)
54+
local_expn_class = self.get_local_expansion_class(kernel)
55+
from sumpy.expansion.m2l import NonFFTM2LTranslationClassFactory
56+
factory = NonFFTM2LTranslationClassFactory()
57+
m2l_translation = factory.get_m2l_translation_class(kernel,
58+
local_expn_class)()
59+
return partial(local_expn_class, m2l_translation=m2l_translation)
5360

5461

5562
class _not_provided: # noqa: N801

0 commit comments

Comments
 (0)