Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/Solvers/LineSearches.jl
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,11 @@ struct Injectivity_Preserving_LS{A} <: AbstractLineSearch
αmin::Float64
ρ::Float64
c::Float64
β::Float64
β::CellField
caches::A
function Injectivity_Preserving_LS(α::CellState, U, V; maxiter::Int64=50, αmin::Float64=1e-16, ρ::Float64=0.5, c::Float64=0.95, β::Float64=0.95)
caches = (U, V)
new{typeof(caches)}(α, maxiter, αmin, ρ, c, β, caches)
new{typeof(caches)}(α, maxiter, αmin, ρ, c, CellField(β, α.points.trian), caches)
end


Expand Down Expand Up @@ -109,6 +109,6 @@ end


function update_cellstate!(obj::Injectivity_Preserving_LS, xh, dxh)
update_state!(InjectivityCheck, obj.α, ∇(xh)', ∇(dxh)', x->obj.β)
update_state!(InjectivityCheck, obj.α, ∇(xh)', ∇(dxh)', obj.β)
return minimum(minimum((obj.α.values)))
end
Loading