From 7ff97e7db6a960a70b6828118cdba1dc2db90a0c Mon Sep 17 00:00:00 2001 From: Nathanael Bosch Date: Fri, 30 Aug 2024 10:19:10 +0200 Subject: [PATCH 1/2] Overload `OrdinaryDiffEq.get_fsalfirstlast` to fix installation issues --- src/caches.jl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/caches.jl b/src/caches.jl index 8cd96353f..20317077c 100644 --- a/src/caches.jl +++ b/src/caches.jl @@ -253,3 +253,5 @@ end get_uf(f, t, p, ::Val{true}) = OrdinaryDiffEq.UJacobianWrapper(f, t, p) get_uf(f, t, p, ::Val{false}) = OrdinaryDiffEq.UDerivativeWrapper(f, t, p) + +OrdinaryDiffEq.get_fsalfirstlast(cache::EKCache, rate_prototype) = nothing, nothing From a5030a2d10e202dc7649b9ecdc69eff834a6db24 Mon Sep 17 00:00:00 2001 From: Nathanael Bosch Date: Fri, 30 Aug 2024 11:14:04 +0200 Subject: [PATCH 2/2] Resolve JET.jl issue --- src/caches.jl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/caches.jl b/src/caches.jl index 20317077c..0253c5063 100644 --- a/src/caches.jl +++ b/src/caches.jl @@ -251,7 +251,9 @@ function OrdinaryDiffEq.alg_cache( ) end -get_uf(f, t, p, ::Val{true}) = OrdinaryDiffEq.UJacobianWrapper(f, t, p) -get_uf(f, t, p, ::Val{false}) = OrdinaryDiffEq.UDerivativeWrapper(f, t, p) +get_uf(f, t, p, ::Val{true}) = + OrdinaryDiffEq.OrdinaryDiffEqDifferentiation.UJacobianWrapper(f, t, p) +get_uf(f, t, p, ::Val{false}) = + OrdinaryDiffEq.OrdinaryDiffEqDifferentiation.UDerivativeWrapper(f, t, p) OrdinaryDiffEq.get_fsalfirstlast(cache::EKCache, rate_prototype) = nothing, nothing