Skip to content

Commit

Permalink
Generalize axes for m
Browse files Browse the repository at this point in the history
  • Loading branch information
abhro committed Aug 2, 2024
1 parent 6f29f62 commit 06f52d7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/MagneticFieldSHTCExpander.jl
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ function magneticfield(
end

# set up array of allowed ℓ values
ℓ_axes = axes(g)[1]
ℓ_axes = axes(g, 1)
m_axes = axes(g, 2)

# PHYSICAL THEORY (see Physical-theory.md)
# Each ℓ,m term of the potential can be written as a product of three
Expand Down Expand Up @@ -148,8 +149,7 @@ function magneticfield(
/
surface_to_surface_scale_denom)

# FIXME Assuming that m starts at 0. how do we rectify?
for m in 0:
for m in m_axes
# XXX can move this out of the loop?
G = plm[ℓ,m]
dG_dθ = -sinθ * dplm[ℓ,m]
Expand Down

0 comments on commit 06f52d7

Please sign in to comment.