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