Skip to content

Commit 6731540

Browse files
committed
Fix constructor for power law sphere density
1 parent f65be31 commit 6731540

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/densities/power_law_sphere.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Base.@kwdef struct PowerLawSphereDensity{L,MD} <: MassDensityModel
2020
"power by which density reduces with respect to radius"
2121
α::Float64
2222

23-
function PowerLawSphereDensity(rₛ, ρ₀, r₀, α)
23+
function PowerLawSphereDensity{L,MD}(rₛ::L, ρ₀::MD, r₀::L, α) where {L,MD}
2424
if iszero(α)
2525
throw(DomainError(α, "α cannot be 0. For α = 0 use UniformSphereDensity."))
2626
end

0 commit comments

Comments
 (0)