File tree 1 file changed +8
-1
lines changed
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 30
30
from pytential .source import LayerPotentialSourceBase
31
31
from sumpy .expansion import DefaultExpansionFactory as DefaultExpansionFactoryBase
32
32
33
+ from functools import partial
34
+
33
35
import logging
34
36
logger = logging .getLogger (__name__ )
35
37
@@ -49,7 +51,12 @@ class DefaultExpansionFactory(DefaultExpansionFactoryBase):
49
51
"""A expansion factory to create QBX local, local and multipole expansions
50
52
"""
51
53
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 )
53
60
54
61
55
62
class _not_provided : # noqa: N801
You can’t perform that action at this time.
0 commit comments