Skip to content

Commit

Permalink
Fix Glen's law
Browse files Browse the repository at this point in the history
  • Loading branch information
utkinis committed Aug 9, 2023
1 parent 707e9da commit 4ef5401
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/physics.jl
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ struct GlensLawRheology{T,I}
exponent::I
end

default(::Type{GlensLawRheology{T,I}}) where {T,I} = GlensLawRheology(convert(T, 1e-20), convert(I, 3))
default(::Type{GlensLawRheology{T,I}}) where {T,I} = GlensLawRheology(convert(T, 2.4e-24), convert(I, 3))

@inline function (rh::GlensLawRheology{T})(τII::T) where {T}
return rh.consistency * τII^(rh.exponent - 1)
return 0.5 / (rh.consistency * τII^(rh.exponent - 1))
end

end

0 comments on commit 4ef5401

Please sign in to comment.