diff --git a/CHANGELOG.md b/CHANGELOG.md index e021228b..53775851 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.5.6] - 2024-10-28 + +### Added + +- Sequential version of gallery functions. + ## [0.5.5] - 2024-10-07 ### Added diff --git a/PartitionedSolvers/src/wrappers.jl b/PartitionedSolvers/src/wrappers.jl index 3789fe6f..dda1ee1f 100644 --- a/PartitionedSolvers/src/wrappers.jl +++ b/PartitionedSolvers/src/wrappers.jl @@ -28,7 +28,7 @@ function IterativeSolvers_cg(p;kwargs...) linear_solver(update,step,p,A) end -function NLSolvers_nlsolve_setup(p) +function NLsolve_nlsolve_setup(p) function f!(r,x) update(p,residual=r,jacobian=nothing,solution=x) r @@ -44,13 +44,13 @@ function NLSolvers_nlsolve_setup(p) df = NLsolve.OnceDifferentiable(f!,j!,fj!,solution(p),residual(p),jacobian(p)) end -function NLSolvers_nlsolve(p;kwargs...) +function NLsolve_nlsolve(p;kwargs...) @assert uses_mutable_types(p) - workspace = NLSolvers_nlsolve_setup(p) + workspace = NLsolve_nlsolve_setup(p) function update(workspace,p) - workspace = NLSolvers_nlsolve_setup(p) + workspace = NLsolve_nlsolve_setup(p) end - function step(workspace,p,phase=:start;kwargs...) + function step(workspace,p,phase=:start;options...) if phase === :stop return nothing end @@ -64,7 +64,7 @@ function NLSolvers_nlsolve(p;kwargs...) nonlinear_solver(update,step,p,workspace) end -function NLSolvers_nlsolve_linsolve(solver,p) +function NLsolve_nlsolve_linsolve(solver,p) x = solution(p) A = jacobian(p) r = residual(p) diff --git a/PartitionedSolvers/test/wrappers_tests.jl b/PartitionedSolvers/test/wrappers_tests.jl index 2fd85aee..bf9962be 100644 --- a/PartitionedSolvers/test/wrappers_tests.jl +++ b/PartitionedSolvers/test/wrappers_tests.jl @@ -56,13 +56,13 @@ end x .= 0 p = PS.update(p,solution=x) -s = PS.NLSolvers_nlsolve(p;show_trace=true,method=:newton) +s = PS.NLsolve_nlsolve(p;show_trace=true,method=:newton) s = PS.solve(s) -linsolve = PS.NLSolvers_nlsolve_linsolve(PS.LinearAlgebra_lu,p) +linsolve = PS.NLsolve_nlsolve_linsolve(PS.LinearAlgebra_lu,p) x .= 0 p = PS.update(p,solution=x) -s = PS.NLSolvers_nlsolve(p;show_trace=true,linsolve,method=:newton) +s = PS.NLsolve_nlsolve(p;show_trace=true,linsolve,method=:newton) s = PS.solve(s) end # module diff --git a/Project.toml b/Project.toml index ac8fb0c7..b4600ce7 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "PartitionedArrays" uuid = "5a9dfac6-5c52-46f7-8278-5e2210713be9" authors = ["Francesc Verdugo and contributors"] -version = "0.5.5" +version = "0.5.6" [deps] BlockArrays = "8e7c35d0-a365-5155-bbbb-fb81a777f24e"