Skip to content

Commit

Permalink
fix bug in multipole_error
Browse files Browse the repository at this point in the history
  • Loading branch information
rymanderson committed Feb 1, 2025
1 parent 2541d3e commit 58c116f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/error.jl
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ function multipole_error(t⃗, r_mp, multipole_expansion, P, error_method, lamb_
rotate_multipole_y!(weights_tmp_2, weights_tmp_1, Ts, Hs_π2, ζs_mag, θ, nmax, lamb_helmholtz)

# multipole error
in0 = (P*(P+1))>>1 + 1
in0 = (nmax*(nmax+1))>>1 + 1
ϕn0 = weights_tmp_2[1,1,in0]
ϕn1_real = weights_tmp_2[1,1,in0+1]
ϕn1_imag = weights_tmp_2[2,1,in0+1]
Expand Down

0 comments on commit 58c116f

Please sign in to comment.