Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pytential
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Kaushik Kulkarni
pytential
Commits
98fe12d1
Commit
98fe12d1
authored
9 years ago
by
Andreas Klöckner
Browse files
Options
Downloads
Patches
Plain Diff
Use H2D expansions in QBX FMM if possible
parent
0ef0fef0
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pytential/qbx/__init__.py
+15
-3
15 additions, 3 deletions
pytential/qbx/__init__.py
with
15 additions
and
3 deletions
pytential/qbx/__init__.py
+
15
−
3
View file @
98fe12d1
...
...
@@ -247,9 +247,21 @@ class QBXLayerPotentialSource(LayerPotentialSource):
fmm_order
=
self
.
fmm_order
# FIXME: Don't hard-code expansion types
fmm_mpole_expn
=
VolumeTaylorMultipoleExpansion
(
base_kernel
,
fmm_order
)
fmm_local_expn
=
VolumeTaylorLocalExpansion
(
base_kernel
,
fmm_order
)
qbx_local_expn
=
VolumeTaylorLocalExpansion
(
from
sumpy.kernel
import
HelmholtzKernel
if
(
isinstance
(
base_kernel
.
get_base_kernel
(),
HelmholtzKernel
)
and
base_kernel
.
dim
==
2
):
from
sumpy.expansion.multipole
import
H2DMultipoleExpansion
from
sumpy.expansion.local
import
H2DLocalExpansion
mpole_expn_class
=
H2DMultipoleExpansion
local_expn_class
=
H2DLocalExpansion
else
:
mpole_expn_class
=
VolumeTaylorMultipoleExpansion
local_expn_class
=
VolumeTaylorLocalExpansion
fmm_mpole_expn
=
mpole_expn_class
(
base_kernel
,
fmm_order
)
fmm_local_expn
=
local_expn_class
(
base_kernel
,
fmm_order
)
qbx_local_expn
=
local_expn_class
(
base_kernel
,
self
.
qbx_order
)
from
pytential.qbx.fmm
import
\
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment