We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f65be31 commit 6731540Copy full SHA for 6731540
src/densities/power_law_sphere.jl
@@ -20,7 +20,7 @@ Base.@kwdef struct PowerLawSphereDensity{L,MD} <: MassDensityModel
20
"power by which density reduces with respect to radius"
21
α::Float64
22
23
- function PowerLawSphereDensity(rₛ, ρ₀, r₀, α)
+ function PowerLawSphereDensity{L,MD}(rₛ::L, ρ₀::MD, r₀::L, α) where {L,MD}
24
if iszero(α)
25
throw(DomainError(α, "α cannot be 0. For α = 0 use UniformSphereDensity."))
26
end
0 commit comments