Skip to content

Commit 83e4156

Browse files
Updates
1 parent 500f2a1 commit 83e4156

File tree

3 files changed

+18
-18
lines changed

3 files changed

+18
-18
lines changed

benchmarks/DynamicalODE/Henon-Heiles_energy_conservation_benchmark.jmd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ function hamilton(du, u, p, t)
6464
end
6565

6666
function custom_manifold_jacobian(u, params)
67-
p1, p2, q1, q2 = u
67+
p1, p2, q1, q2 = u[1], u[2], u[3], u[4]
6868

6969
J = zeros(4, 4)
7070

@@ -95,9 +95,9 @@ abs_energy_err(sol) = [abs.(H([sol[1, j], sol[2, j]], [sol[3, j], sol[4, j]], no
9595

9696
function compare(mode=:inplace, all=true, plt=nothing; tmax=1e2)
9797
if mode == :inplace
98-
prob = DynamicalODEProblem(iip_dp, iip_dq, iip_p0, iip_q0, (0., tmax))
98+
prob = DynamicalODEProblem(iip_dp, iip_dq, iip_p0, iip_q0, (0., tmax), nothing)
9999
else
100-
prob = DynamicalODEProblem(oop_dp, oop_dq, oop_p0, oop_q0, (0., tmax))
100+
prob = DynamicalODEProblem(oop_dp, oop_dq, oop_p0, oop_q0, (0., tmax), nothing)
101101
end
102102
prob_linear = ODEProblem(hamilton, vcat(iip_p0, iip_q0), (0., tmax))
103103

benchmarks/DynamicalODE/Manifest.toml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -422,9 +422,9 @@ version = "1.15.1"
422422

423423
[[deps.DifferentiationInterface]]
424424
deps = ["ADTypes", "LinearAlgebra"]
425-
git-tree-sha1 = "16611777adf4a818f18c33210895947814180964"
425+
git-tree-sha1 = "89d7cfcd1c4d9137497148e44e87ed4866ed6730"
426426
uuid = "a0c0ee7d-e4b9-4e03-894e-1c5f64a51d63"
427-
version = "0.6.16"
427+
version = "0.6.17"
428428

429429
[deps.DifferentiationInterface.extensions]
430430
DifferentiationInterfaceChainRulesCoreExt = "ChainRulesCore"
@@ -630,9 +630,9 @@ uuid = "29a986be-02c6-4525-aec4-84b980013641"
630630
version = "2.0.4"
631631

632632
[[deps.FastPower]]
633-
git-tree-sha1 = "46aee43f62bc2bc06a74e2d668ffeea0a2689c93"
633+
git-tree-sha1 = "58c3431137131577a7c379d00fea00be524338fb"
634634
uuid = "a4df4552-cc26-4903-aec0-212e50a0e84b"
635-
version = "1.1.0"
635+
version = "1.1.1"
636636

637637
[deps.FastPower.extensions]
638638
FastPowerEnzymeExt = "Enzyme"
@@ -832,9 +832,9 @@ version = "1.0.2"
832832

833833
[[deps.HTTP]]
834834
deps = ["Base64", "CodecZlib", "ConcurrentUtilities", "Dates", "ExceptionUnwrapping", "Logging", "LoggingExtras", "MbedTLS", "NetworkOptions", "OpenSSL", "Random", "SimpleBufferStream", "Sockets", "URIs", "UUIDs"]
835-
git-tree-sha1 = "d1d712be3164d61d1fb98e7ce9bcbc6cc06b45ed"
835+
git-tree-sha1 = "bc3f416a965ae61968c20d0ad867556367f2817d"
836836
uuid = "cd3eb016-35fb-5094-929b-558a96fad6f3"
837-
version = "1.10.8"
837+
version = "1.10.9"
838838

839839
[[deps.HarfBuzz_jll]]
840840
deps = ["Artifacts", "Cairo_jll", "Fontconfig_jll", "FreeType2_jll", "Glib_jll", "Graphite2_jll", "JLLWrappers", "Libdl", "Libffi_jll"]
@@ -1483,9 +1483,9 @@ version = "1.1.0"
14831483

14841484
[[deps.OrdinaryDiffEqExtrapolation]]
14851485
deps = ["DiffEqBase", "FastBroadcast", "FastPower", "LinearSolve", "MuladdMacro", "OrdinaryDiffEqCore", "OrdinaryDiffEqDifferentiation", "Polyester", "RecursiveArrayTools", "Reexport"]
1486-
git-tree-sha1 = "0260b1657069608f2a2f26f58f65019d8a9070ab"
1486+
git-tree-sha1 = "048bcccc8f59c20d5b4ad268eef4d7d21c005a94"
14871487
uuid = "becaefa8-8ca2-5cf9-886d-c06f3d2bd2c4"
1488-
version = "1.2.0"
1488+
version = "1.2.1"
14891489

14901490
[[deps.OrdinaryDiffEqFIRK]]
14911491
deps = ["DiffEqBase", "FastBroadcast", "FastPower", "GenericLinearAlgebra", "GenericSchur", "LinearAlgebra", "LinearSolve", "MuladdMacro", "OrdinaryDiffEqCore", "OrdinaryDiffEqDifferentiation", "OrdinaryDiffEqNonlinearSolve", "Polynomials", "RecursiveArrayTools", "Reexport", "RootedTrees", "SciMLOperators", "Symbolics"]
@@ -1859,9 +1859,9 @@ version = "0.6.12"
18591859

18601860
[[deps.RecursiveArrayTools]]
18611861
deps = ["Adapt", "ArrayInterface", "DocStringExtensions", "GPUArraysCore", "IteratorInterfaceExtensions", "LinearAlgebra", "RecipesBase", "StaticArraysCore", "Statistics", "SymbolicIndexingInterface", "Tables"]
1862-
git-tree-sha1 = "b034171b93aebc81b3e1890a036d13a9c4a9e3e0"
1862+
git-tree-sha1 = "43cdc0987135597867a37fc3e8e0fc9fdef6ac66"
18631863
uuid = "731186ca-8d62-57ce-b412-fbd966d074cd"
1864-
version = "3.27.0"
1864+
version = "3.27.1"
18651865

18661866
[deps.RecursiveArrayTools.extensions]
18671867
RecursiveArrayToolsFastBroadcastExt = "FastBroadcast"
@@ -1957,9 +1957,9 @@ version = "0.6.43"
19571957

19581958
[[deps.SciMLBase]]
19591959
deps = ["ADTypes", "Accessors", "ArrayInterface", "CommonSolve", "ConstructionBase", "Distributed", "DocStringExtensions", "EnumX", "Expronicon", "FunctionWrappersWrappers", "IteratorInterfaceExtensions", "LinearAlgebra", "Logging", "Markdown", "PrecompileTools", "Preferences", "Printf", "RecipesBase", "RecursiveArrayTools", "Reexport", "RuntimeGeneratedFunctions", "SciMLOperators", "SciMLStructures", "StaticArraysCore", "Statistics", "SymbolicIndexingInterface"]
1960-
git-tree-sha1 = "328dd8738fad35cfe53c427a30e711ed45a1d900"
1960+
git-tree-sha1 = "86e1c491cddf233d77d8aadbe289005db44e8445"
19611961
uuid = "0bca4576-84f4-4d90-8ffe-ffa030f20462"
1962-
version = "2.57.1"
1962+
version = "2.57.2"
19631963

19641964
[deps.SciMLBase.extensions]
19651965
SciMLBaseChainRulesCoreExt = "ChainRulesCore"

benchmarks/DynamicalODE/Quadrupole_boson_Hamiltonian_energy_conservation_benchmark.jmd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,11 @@ abs_energy_err(sol) = [abs.(H([sol[1,j], sol[2,j]], [sol[3,j], sol[4,j]],nothing
9292

9393
function compare(mode=:inplace, all=true, plt=nothing; tmax=1e2)
9494
if mode == :inplace
95-
prob = DynamicalODEProblem(iip_dp, iip_dq, iip_p0, iip_q0, (0., tmax))
95+
prob = DynamicalODEProblem(iip_dp, iip_dq, iip_p0, iip_q0, (0., tmax), nothing)
9696
else
97-
prob = DynamicalODEProblem(oop_dp, oop_dq, oop_p0, oop_q0, (0., tmax))
97+
prob = DynamicalODEProblem(oop_dp, oop_dq, oop_p0, oop_q0, (0., tmax), nothing)
9898
end
99-
prob_linear = ODEProblem(hamilton, vcat(iip_p0, iip_q0), (0., tmax))
99+
prob_linear = ODEProblem(hamilton, vcat(iip_p0, iip_q0), (0., tmax), nothing)
100100

101101
GC.gc()
102102
(mode == :inplace && all) && @time sol1 = solve(prob, Vern9(), callback=cb, abstol=1e-14, reltol=1e-14)

0 commit comments

Comments
 (0)