From 09a3f20e756bbe1450f489348cbe58d4eea9121f Mon Sep 17 00:00:00 2001 From: Mateusz Baran Date: Tue, 14 Mar 2023 21:04:21 +0100 Subject: [PATCH 1/2] enable dependabot for GitHub actions --- .github/dependabot.yml | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..700707c --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,7 @@ +# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" # Location of package manifests + schedule: + interval: "weekly" From b150043173df8ee7b87eae29d2ab2417de3d8865 Mon Sep 17 00:00:00 2001 From: Mateusz Baran Date: Tue, 14 Mar 2023 21:48:24 +0100 Subject: [PATCH 2/2] OrdinaryDiffEq updates --- src/frozen_solvers.jl | 20 ++++++++++---------- src/lie_solvers.jl | 8 ++++---- src/problems.jl | 6 +++--- 3 files changed, 17 insertions(+), 17 deletions(-) diff --git a/src/frozen_solvers.jl b/src/frozen_solvers.jl index 277bf49..60fbdef 100644 --- a/src/frozen_solvers.jl +++ b/src/frozen_solvers.jl @@ -53,12 +53,12 @@ function perform_step!(integrator, ::ManifoldEulerCache, repeat_step = false) k = f(u, p, t) retract!(alg.manifold, u, u, dt * k, alg.retraction_method) - return integrator.destats.nf += 1 + return integrator.stats.nf += 1 end function initialize!(integrator, ::ManifoldEulerCache) integrator.fsalfirst = integrator.f(integrator.uprev, integrator.p, integrator.t) # Pre-start fsal - integrator.destats.nf += 1 + integrator.stats.nf += 1 integrator.kshortsize = 1 integrator.k = typeof(integrator.k)(undef, integrator.kshortsize) @@ -127,7 +127,7 @@ function initialize!(integrator, cache::CG2Cache) integrator.k = typeof(integrator.k)(undef, integrator.kshortsize) integrator.fsalfirst = integrator.f(integrator.uprev, integrator.p, integrator.t) - integrator.destats.nf += 1 + integrator.stats.nf += 1 integrator.fsallast = zero.(integrator.fsalfirst) integrator.k[1] = integrator.fsalfirst @@ -146,7 +146,7 @@ function perform_step!(integrator, cache::CG2Cache, repeat_step = false) k2t = f.f.operator_vector_transport(M, cache.X2u, cache.X2, u, p, t + dt2, t) retract!(M, u, u, dt * k2t, alg.retraction_method) - return integrator.destats.nf += 2 + return integrator.stats.nf += 2 end @@ -229,7 +229,7 @@ function initialize!(integrator, cache::CG2_3Cache) integrator.k = typeof(integrator.k)(undef, integrator.kshortsize) integrator.fsalfirst = integrator.f(integrator.uprev, integrator.p, integrator.t) - integrator.destats.nf += 1 + integrator.stats.nf += 1 integrator.fsallast = zero.(integrator.fsalfirst) integrator.k[1] = integrator.fsalfirst @@ -289,7 +289,7 @@ function perform_step!(integrator, cache::CG2_3Cache, repeat_step = false) ) end - return integrator.destats.nf += 3 + return integrator.stats.nf += 3 end @@ -389,7 +389,7 @@ function perform_step!(integrator, cache::CG3Cache, repeat_step = false) X3tu = f.f.operator_vector_transport(M, cache.X3u, cache.X3, u, p, t + c3h, t) retract!(M, u, u, b3 * X3tu, alg.retraction_method) - return integrator.destats.nf += 3 + return integrator.stats.nf += 3 end function initialize!(integrator, ::CG3Cache) @@ -397,7 +397,7 @@ function initialize!(integrator, ::CG3Cache) integrator.k = typeof(integrator.k)(undef, integrator.kshortsize) integrator.fsalfirst = integrator.f(integrator.uprev, integrator.p, integrator.t) - integrator.destats.nf += 1 + integrator.stats.nf += 1 integrator.fsallast = zero.(integrator.fsalfirst) integrator.k[1] = integrator.fsalfirst @@ -575,7 +575,7 @@ function perform_step!(integrator, cache::CG4aCache, repeat_step = false) X5tu = f.f.operator_vector_transport(M, cache.X5u, cache.X5, u, p, t + c5h, t) retract!(M, u, u, b5 * X5tu, alg.retraction_method) - return integrator.destats.nf += 5 + return integrator.stats.nf += 5 end function initialize!(integrator, ::CG4aCache) @@ -583,7 +583,7 @@ function initialize!(integrator, ::CG4aCache) integrator.k = typeof(integrator.k)(undef, integrator.kshortsize) integrator.fsalfirst = integrator.f(integrator.uprev, integrator.p, integrator.t) - integrator.destats.nf += 1 + integrator.stats.nf += 1 integrator.fsallast = zero.(integrator.fsalfirst) integrator.k[1] = integrator.fsalfirst diff --git a/src/lie_solvers.jl b/src/lie_solvers.jl index 15e3be1..de00601 100644 --- a/src/lie_solvers.jl +++ b/src/lie_solvers.jl @@ -62,14 +62,14 @@ function perform_step!(integrator, cache::ManifoldLieEulerCache, repeat_step = f retract!(alg.manifold, u, u, dt * k, alg.retraction_method) - return integrator.destats.nf += 1 + return integrator.stats.nf += 1 end function initialize!(integrator, cache::ManifoldLieEulerCache) @unpack t, uprev, f, p, alg = integrator X = f(uprev, p, t) # Pre-start fsal integrator.fsalfirst = apply_diff_group(alg.action, cache.id, X, uprev) - integrator.destats.nf += 1 + integrator.stats.nf += 1 integrator.kshortsize = 1 integrator.k = typeof(integrator.k)(undef, integrator.kshortsize) @@ -188,14 +188,14 @@ function perform_step!(integrator, cache::RKMK4Cache, repeat_step = false) X = apply_diff_group(action, cache.id, v, u) retract!(alg.manifold, u, u, X, alg.retraction_method) - return integrator.destats.nf += 1 + return integrator.stats.nf += 1 end function initialize!(integrator, cache::RKMK4Cache) @unpack t, uprev, f, p, alg = integrator X = f(uprev, p, t) # Pre-start fsal integrator.fsalfirst = apply_diff_group(alg.action, cache.id, X, uprev) - integrator.destats.nf += 1 + integrator.stats.nf += 1 integrator.kshortsize = 1 integrator.k = typeof(integrator.k)(undef, integrator.kshortsize) diff --git a/src/problems.jl b/src/problems.jl index bc3849b..f83d69a 100644 --- a/src/problems.jl +++ b/src/problems.jl @@ -214,8 +214,8 @@ function build_solution( calculate_error = true, k = nothing, interp::InterpolationData, - retcode = :Default, - destats = nothing, + retcode = ReturnCode.Default, + stats = nothing, kwargs..., ) T = eltype(eltype(u)) @@ -240,7 +240,7 @@ function build_solution( manifold_interp, dense, 0, - destats, + stats, nothing, retcode, )