File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 3030from pytential .source import LayerPotentialSourceBase
3131from sumpy .expansion import DefaultExpansionFactory as DefaultExpansionFactoryBase
3232
33+ from functools import partial
34+
3335import logging
3436logger = 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
5562class _not_provided : # noqa: N801
You can’t perform that action at this time.
0 commit comments