Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion pytential/qbx/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
from pytential.source import LayerPotentialSourceBase
from sumpy.expansion import DefaultExpansionFactory as DefaultExpansionFactoryBase

from functools import partial

import logging
logger = logging.getLogger(__name__)

Expand All @@ -49,7 +51,12 @@ class DefaultExpansionFactory(DefaultExpansionFactoryBase):
"""A expansion factory to create QBX local, local and multipole expansions
"""
def get_qbx_local_expansion_class(self, kernel):
return self.get_local_expansion_class(kernel)
local_expn_class = self.get_local_expansion_class(kernel)
from sumpy.expansion.m2l import NonFFTM2LTranslationClassFactory
factory = NonFFTM2LTranslationClassFactory()
m2l_translation = factory.get_m2l_translation_class(kernel,
local_expn_class)()
return partial(local_expn_class, m2l_translation=m2l_translation)


class _not_provided: # noqa: N801
Expand Down