Skip to content

Commit 2b67ab4

Browse files
authored
Fix example and add SciMLOperators v0.4 compatibility (#42)
* fix example and update SciMLOperators compat * fix manifold
1 parent 95266af commit 2b67ab4

File tree

4 files changed

+19
-8
lines changed

4 files changed

+19
-8
lines changed

NEWS.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,16 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [0.2.5] - 2025-10-18
9+
10+
### Added
11+
12+
* Compatibility with SciMLOperators v0.4
13+
14+
### Fixed
15+
16+
* Example usage was updated to the `LieGroups.jl` refactor.
17+
818
## [0.2.4] - 2025-10-09
919

1020
### Changed

Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "ManifoldDiffEq"
22
uuid = "1143c485-9b25-4e23-a65f-701df382ec90"
3-
version = "0.2.4"
3+
version = "0.2.5"
44
authors = ["Seth Axen <[email protected]>", "Mateusz Baran <[email protected]>", "Ronny Bergmann <[email protected]>", "Antoine Levitt <[email protected]>"]
55

66
[deps]
@@ -31,7 +31,7 @@ Markdown = "1.6"
3131
OrdinaryDiffEqCore = "1"
3232
RecursiveArrayTools = "2, 3"
3333
SciMLBase = "1, 2"
34-
SciMLOperators = "0.3.13"
34+
SciMLOperators = "0.3.13, 0.4"
3535
SimpleUnPack = "1"
3636
julia = "1.10"
3737

docs/make.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ links = InterLinks(
1717
makedocs(
1818
# for development, we disable prettyurls
1919
format = Documenter.HTML(
20-
prettyurls = false,
20+
prettyurls = (get(ENV, "CI", nothing) == "true"),
2121
assets = ["assets/favicon.ico", "assets/citations.css"],
2222
),
2323
modules = [ManifoldDiffEq],

docs/src/examples.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ We solve the ODE system on the sphere ``\mathbb S^2`` given by
2727
```
2828

2929
```julia
30-
using ManifoldDiffEq, Manifolds
30+
using ManifoldDiffEq, Manifolds, LieGroups
3131
using GLMakie, LinearAlgebra, Colors
3232

3333
n = 25
@@ -59,6 +59,7 @@ arr = GLMakie.arrows!(
5959
)
6060
save("docs/src/assets/img/first_example_vector_field.png", f)
6161
```
62+
6263
which looks like
6364

6465
![The ODE illustrated as a tangent vector field](assets/img/first_example_vector_field.png)
@@ -73,7 +74,7 @@ u0 = [0.0, sqrt(9/10), sqrt(1/10)]
7374
tspan = (0, 20.0)
7475

7576
A_lie = LieManifoldDiffEqOperator{Float64}() do u, p, t
76-
return hat(SpecialOrthogonal(3), Matrix(I(3)), cross(u, f2(u...)))
77+
return hat(SpecialOrthogonalGroup(3), Matrix(I(3)), cross(u, f2(u...)))
7778
end
7879
prob_lie = ManifoldODEProblem(A_lie, u0, tspan, S2)
7980

@@ -82,9 +83,9 @@ A_frozen = FrozenManifoldDiffEqOperator{Float64}() do u, p, t
8283
end
8384
prob_frozen = ManifoldODEProblem(A_frozen, u0, tspan, S2)
8485

85-
action = RotationAction(Euclidean(3), SpecialOrthogonal(3))
86-
alg_lie_euler = ManifoldDiffEq.ManifoldLieEuler(S2, ExponentialRetraction(), action)
87-
alg_lie_rkmk4 = ManifoldDiffEq.RKMK4(S2, ExponentialRetraction(), action)
86+
action = GroupAction(LeftMultiplicationGroupAction(), SpecialOrthogonalGroup(3), S2)
87+
alg_lie_euler = ManifoldDiffEq.ManifoldLieEuler(ExponentialRetraction(), action)
88+
alg_lie_rkmk4 = ManifoldDiffEq.RKMK4(ExponentialRetraction(), action)
8889

8990
alg_manifold_euler = ManifoldDiffEq.ManifoldEuler(S2, ExponentialRetraction())
9091
alg_cg2 = ManifoldDiffEq.CG2(S2, ExponentialRetraction())

0 commit comments

Comments
 (0)