Skip to content

Commit 202eea2

Browse files
committed
BUG: fix weertman exponent
1 parent 334bace commit 202eea2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ ColorSchemes = "3.25"
3030
Enzyme = "0.13"
3131
JLD2 = "0.6"
3232
JSOSolvers = "0.14.1"
33-
Lux = "1.21"
34-
MAT = "0.10"
33+
Lux = "1.26"
34+
MAT = "0.11"
3535
MLUtils = "0.4.8"
3636
MadNLP = "0.8"
3737
Makie = "0.24"

src/core/friction.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,10 +125,10 @@ end #}}}
125125
m = GetInputValue(friction.m_input, gauss, i)
126126
vmag = VelMag(friction, gauss, i)
127127

128-
if vmag==0.0 && m<1.0
128+
if vmag==0.0 && (1.0/m)<1.0
129129
return 0.0
130130
else
131-
return c^2*vmag^(m-1)
131+
return c^2*vmag^(1.0/m-1.0)
132132
end
133133
end#}}}
134134
@inline function Alpha2(friction::CoreSchoofFriction, gauss::GaussTria, i::Int64) #{{{

0 commit comments

Comments
 (0)