Skip to content

Commit

Permalink
Update for BoundaryValueDiffEq v5 (#672)
Browse files Browse the repository at this point in the history
* Update for BoundaryValueDiffEq v5

* Add news entry and bump version
  • Loading branch information
mateuszbaran authored Oct 28, 2023
1 parent cdf3f6c commit ab49d04
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 12 deletions.
6 changes: 6 additions & 0 deletions NEWS.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.9.3] - 2023-10-28

### Added

- Support for `BoundaryValueDiffEq` v5.

## [0.9.2] - 2023-10-27

### Added
Expand Down
4 changes: 2 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "Manifolds"
uuid = "1cead3c2-87b3-11e9-0ccd-23c62b72b94e"
authors = ["Seth Axen <[email protected]>", "Mateusz Baran <[email protected]>", "Ronny Bergmann <[email protected]>", "Antoine Levitt <[email protected]>"]
version = "0.9.2"
version = "0.9.3"

[deps]
Distributions = "31c24e10-a181-5473-b8eb-7969acd0382f"
Expand Down Expand Up @@ -42,7 +42,7 @@ ManifoldsRecipesBaseExt = ["Colors", "RecipesBase"]
ManifoldsTestExt = "Test"

[compat]
BoundaryValueDiffEq = "4"
BoundaryValueDiffEq = "4, 5"
Colors = "0.12"
Distributions = "0.22.6, 0.23, 0.24, 0.25"
Einsum = "0.4"
Expand Down
16 changes: 6 additions & 10 deletions ext/ManifoldsBoundaryValueDiffEqExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ end
A::AbstractAtlas,
i;
solver=MIRK4(),
dt=0.05,
dt::Real=0.05,
kwargs...,
)
Expand All @@ -55,22 +55,18 @@ function solve_chart_log_bvp(
A::AbstractAtlas,
i;
solver=MIRK4(),
dt=0.05,
dt::Real=0.05,
kwargs...,
)
tspan = (0.0, 1.0)
function bc1!(residual, u, p, t)
mid = div(length(u[1]), 2)
residual[1:mid] = u[1][1:mid] - a1
return residual[(mid + 1):end] = u[end][1:mid] - a2
residual[(mid + 1):end] = u[end][1:mid] - a2
return residual
end
bvp1 = BVProblem(
chart_log_problem!,
bc1!,
(p, t) -> vcat(t * a1 + (1 - t) * a2, zero(a1)),
tspan,
(M, A, i),
)
u0 = [vcat(a1, zero(a1)), vcat(a2, zero(a1))]
bvp1 = BVProblem(chart_log_problem!, bc1!, u0, tspan, (M, A, i))
sol1 = solve(bvp1, solver, dt=dt)
return sol1
end
Expand Down

2 comments on commit ab49d04

@mateuszbaran
Copy link
Member 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/94301

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.9.3 -m "<description of version>" ab49d04743487cb9892f02024a1e9ecbc4f3ea6e
git push origin v0.9.3

Please sign in to comment.