Skip to content
Snippets Groups Projects
Commit be17b670 authored by Isuru Fernando's avatar Isuru Fernando
Browse files

Help CSE algorithm in P2M

parent 759e2958
No related branches found
No related tags found
1 merge request!103Help CSE algorithm in P2M
...@@ -88,7 +88,7 @@ class VolumeTaylorMultipoleExpansionBase(MultipoleExpansionBase): ...@@ -88,7 +88,7 @@ class VolumeTaylorMultipoleExpansionBase(MultipoleExpansionBase):
for i, mi in enumerate(coeff_identifiers): for i, mi in enumerate(coeff_identifiers):
result[i] /= (mi_factorial(mi) * rscale ** sum(mi)) result[i] /= (mi_factorial(mi) * rscale ** sum(mi))
else: else:
avec = avec * rscale**-1 avec = [sym.UnevaluatedExpr(a * rscale**-1) for a in avec]
result = [ result = [
mi_power(avec, mi) / mi_factorial(mi) mi_power(avec, mi) / mi_factorial(mi)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment