Skip to content

Commit fcf3ac4

Browse files
Update to ArrayInterface 7
1 parent 53b9ef2 commit fcf3ac4

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ authors = ["Chris Rackauckas <[email protected]>"]
44
version = "6.118.0"
55

66
[deps]
7-
ArrayInterfaceCore = "30b0a656-2188-435a-8636-2ec0e6a096e2"
7+
ArrayInterface = "4fba245c-0d91-5ea0-9b3e-6abc04ee57a9"
88
ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4"
99
DataStructures = "864edb3b-99cc-5e75-8d2d-829cb0a9cfe8"
1010
Distributions = "31c24e10-a181-5473-b8eb-7969acd0382f"
@@ -54,7 +54,7 @@ DiffEqBaseUnitfulExt = "Unitful"
5454
DiffEqBaseMPIExt = "MPI"
5555

5656
[compat]
57-
ArrayInterfaceCore = "0.1.26"
57+
ArrayInterface = "7"
5858
ChainRulesCore = "1"
5959
DataStructures = "0.18"
6060
Distributions = "0.25"

src/DiffEqBase.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ if !isdefined(Base, :get_extension)
77
using Requires
88
end
99

10-
using ArrayInterfaceCore
10+
using ArrayInterface
1111

1212
using StaticArraysCore # data arrays
1313

src/callbacks.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ end
193193
next_sign = @view(integrator.callback_cache.next_sign[1:(callback.len)])
194194

195195
if integrator.event_last_time == counter &&
196-
minimum(ODE_DEFAULT_NORM(ArrayInterfaceCore.allowed_getindex(previous_condition,
196+
minimum(ODE_DEFAULT_NORM(ArrayInterface.allowed_getindex(previous_condition,
197197
ivec), integrator.t)) <=
198198
100ODE_DEFAULT_NORM(integrator.last_event_error, integrator.t)
199199

@@ -473,9 +473,9 @@ function find_callback_time(integrator, callback::VectorContinuousCallback, coun
473473
min_t = nextfloat(top_t)
474474
min_event_idx = -1
475475
for idx in 1:length(event_idx)
476-
if ArrayInterfaceCore.allowed_getindex(event_idx, idx) != 0
476+
if ArrayInterface.allowed_getindex(event_idx, idx) != 0
477477
function zero_func(abst, p = nothing)
478-
ArrayInterfaceCore.allowed_getindex(get_condition(integrator,
478+
ArrayInterface.allowed_getindex(get_condition(integrator,
479479
callback,
480480
abst), idx)
481481
end
@@ -538,7 +538,7 @@ function find_callback_time(integrator, callback::VectorContinuousCallback, coun
538538
error("Callback handling failed. Please file an issue with code to reproduce.")
539539
end
540540

541-
new_t, ArrayInterfaceCore.allowed_getindex(prev_sign, min_event_idx),
541+
new_t, ArrayInterface.allowed_getindex(prev_sign, min_event_idx),
542542
event_occurred::Bool, min_event_idx::Int
543543
end
544544

src/norecompile.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ function wrapfun_iip(ff,
5555
inputs::Tuple{T1, T2, T3, T4}) where {T1, T2, T3, T4}
5656
T = eltype(T2)
5757
dualT = dualgen(T)
58-
dualT1 = ArrayInterfaceCore.promote_eltype(T1, dualT)
59-
dualT2 = ArrayInterfaceCore.promote_eltype(T2, dualT)
58+
dualT1 = ArrayInterface.promote_eltype(T1, dualT)
59+
dualT2 = ArrayInterface.promote_eltype(T2, dualT)
6060
dualT4 = dualgen(promote_type(T, T4))
6161

6262
iip_arglists = (Tuple{T1, T2, T3, T4},

src/solve.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1072,7 +1072,7 @@ function promote_f(f::F, ::Val{specialize}, u0, p, t) where {F, specialize}
10721072
((specialize === SciMLBase.AutoSpecialize && eltype(u0) !== Any &&
10731073
RecursiveArrayTools.recursive_unitless_eltype(u0) === eltype(u0) &&
10741074
one(t) === oneunit(t) &&
1075-
Tricks.static_hasmethod(ArrayInterfaceCore.promote_eltype,
1075+
Tricks.static_hasmethod(ArrayInterface.promote_eltype,
10761076
Tuple{Type{typeof(u0)}, Type{dualgen(eltype(u0))}}) &&
10771077
Tricks.static_hasmethod(promote_rule,
10781078
Tuple{Type{eltype(u0)}, Type{dualgen(eltype(u0))}}) &&

0 commit comments

Comments
 (0)