From 24acb393ee147cb6a2cac1ed09c8681f0c355173 Mon Sep 17 00:00:00 2001 From: Daines Date: Fri, 9 Feb 2024 17:25:01 +0000 Subject: [PATCH] Bugfix for SolverFunctions.StepClampAll! Fix typo in SolverFunctions.StepClampAll! that caused immediate error (NB: StepClampMultAll! is usually preferred anyway) --- src/SolverFunctions.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SolverFunctions.jl b/src/SolverFunctions.jl index e13f558..b4c3d61 100644 --- a/src/SolverFunctions.jl +++ b/src/SolverFunctions.jl @@ -60,7 +60,7 @@ end function (sca::StepClampAll!)(x, x_old, newton_step) for i in eachindex(x) x[i] = x_old[i] + newton_step[i] - x[i] = clamp(x[i], scma.minvalue, scma.maxvalue) + x[i] = clamp(x[i], sca.minvalue, sca.maxvalue) end return nothing end