Skip to content

Commit

Permalink
and more methods
Browse files Browse the repository at this point in the history
  • Loading branch information
albert-de-montserrat committed Sep 11, 2024
1 parent 05b5187 commit 0ae0785
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/GeoParams.jl
Original file line number Diff line number Diff line change
Expand Up @@ -448,14 +448,10 @@ for modulus in (:G, :Kb)
end

@inline get_G(::NonElasticRheologyTrait, c::CompositeRheology) = 0
@inline get_G(::NonElasticRheologyTrait) = 0
@inline get_G(::AbstractCreepLaw) = 0
@inline get_G(::AbstractPlasticity) = 0
@inline get_G(::Union{NonElasticRheologyTrait, AbstractCreepLaw, AbstractPlasticity, AbstractConstitutiveLaw}) = 0

@inline get_Kb(::NonElasticRheologyTrait, c::CompositeRheology) = Inf
@inline get_Kb(::NonElasticRheologyTrait) = Inf
@inline get_Kb(::AbstractCreepLaw) = Inf
@inline get_Kb(::AbstractPlasticity) = Inf
@inline get_Kb(::Union{NonElasticRheologyTrait, AbstractCreepLaw, AbstractPlasticity, AbstractConstitutiveLaw}) = Inf

export get_G, get_Kb

Expand Down

0 comments on commit 0ae0785

Please sign in to comment.