Skip to content

Commit

Permalink
bugfix in computation of dlegpoly
Browse files Browse the repository at this point in the history
  • Loading branch information
bonevbs committed Oct 20, 2023
1 parent 2a866d8 commit bd99bfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torch_harmonics/legendre.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def _precompute_dlegpoly(mmax, lmax, t, norm="ortho", inverse=False, csphase=Tru
[2] Wang, B., Wang, L., Xie, Z.; Accurate calculation of spherical and vector spherical harmonic expansions via spectral element grids; Adv Comput Math.
"""

pct = precompute_legpoly(mmax+1, lmax+1, t, norm=norm, inverse=inverse, csphase=False)
pct = _precompute_legpoly(mmax+1, lmax+1, t, norm=norm, inverse=inverse, csphase=False)

dpct = torch.zeros((2, mmax, lmax, len(t)), dtype=torch.float64)

Expand Down

0 comments on commit bd99bfb

Please sign in to comment.