Skip to content

Commit

Permalink
make get_alpha great again
Browse files Browse the repository at this point in the history
  • Loading branch information
albert-de-montserrat committed Sep 10, 2024
1 parent 95d543f commit caf9e12
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/rheology/GeoParams.jl
Original file line number Diff line number Diff line change
@@ -25,6 +25,7 @@ end
@inline get_α(p::MaterialParams) = get_α(p.Density[1])
@inline get_α(p::MaterialParams, args::NamedTuple) = get_α(p.Density[1], args)
@inline get_α(p::Union{T_Density,PT_Density}) = GeoParams.get_α(p)
@inline get_α(rho::MeltDependent_Density, args) = get_α(rho; args...)
@inline get_α(p::Union{T_Density,PT_Density}, ::Any) = GeoParams.get_α(p)
@inline get_α(rho::MeltDependent_Density, ::Any) = get_α(rho)
@inline get_α(rho::ConstantDensity, args) = 0
@inline get_α(rho::ConstantDensity) = 0

0 comments on commit caf9e12

Please sign in to comment.