From 93e0da617855614b8176e5829e0b97eb0b6b998d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jesus=20Mart=C3=ADnez?= Date: Thu, 5 Mar 2026 12:19:57 +0100 Subject: [PATCH] Adapts injectivity check state update MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Passes the `β` parameter as a function to the `update_state!` method. This aligns with an updated `InjectivityCheck` API, ensuring consistent handling of parameters within the injectivity preservation logic. --- src/Solvers/LineSearches.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Solvers/LineSearches.jl b/src/Solvers/LineSearches.jl index edf0fb4..b92f87c 100644 --- a/src/Solvers/LineSearches.jl +++ b/src/Solvers/LineSearches.jl @@ -109,6 +109,6 @@ end function update_cellstate!(obj::Injectivity_Preserving_LS, xh, dxh) - update_state!(InjectivityCheck, obj.α, ∇(xh)', ∇(dxh)', obj.β) + update_state!(InjectivityCheck, obj.α, ∇(xh)', ∇(dxh)', x->obj.β) return minimum(minimum((obj.α.values))) end \ No newline at end of file