Skip to content

Commit

Permalink
Merge pull request #179 from fverdugo/solvers
Browse files Browse the repository at this point in the history
Release PartitionedArrays v0.5.6
  • Loading branch information
fverdugo authored Oct 28, 2024
2 parents 955d2eb + 04411e4 commit 6ed6a8c
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 10 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 6 additions & 6 deletions PartitionedSolvers/src/wrappers.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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)
Expand Down
6 changes: 3 additions & 3 deletions PartitionedSolvers/test/wrappers_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "PartitionedArrays"
uuid = "5a9dfac6-5c52-46f7-8278-5e2210713be9"
authors = ["Francesc Verdugo <[email protected]> and contributors"]
version = "0.5.5"
version = "0.5.6"

[deps]
BlockArrays = "8e7c35d0-a365-5155-bbbb-fb81a777f24e"
Expand Down

2 comments on commit 6ed6a8c

@fverdugo
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/118243

Tip: Release Notes

Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.

@JuliaRegistrator register

Release notes:

## Breaking changes

- blah

To add them here just re-invoke and the PR will be updated.

Tagging

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.5.6 -m "<description of version>" 6ed6a8c6fccc1a6683392519a196663ba673ef86
git push origin v0.5.6

Please sign in to comment.