Skip to content

Commit 0f99bff

Browse files
Merge pull request #877 from SciML/staticarrays
Excise staticarrays for staticarrayscore
2 parents 0b9d4ce + 5aa300f commit 0f99bff

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

Project.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ SciMLBase = "0bca4576-84f4-4d90-8ffe-ffa030f20462"
2626
Setfield = "efcf1570-3423-57d1-acb7-fd33fddbac46"
2727
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
2828
Static = "aedffcd0-7271-4cad-89d0-dc628f76c6d3"
29-
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
29+
StaticArraysCore = "1e83bf80-4336-4d27-bf5d-d5a4f845583c"
3030
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
3131
Tricks = "410a4b4d-49e4-4fbc-ab6d-cb71b17b3775"
3232
ZygoteRules = "700de1a5-db45-46bc-99cf-38207098b444"
@@ -72,7 +72,7 @@ Requires = "1.0"
7272
SciMLBase = "1.84"
7373
Setfield = "0.8, 1"
7474
Static = "0.7, 0.8"
75-
StaticArrays = "1.0"
75+
StaticArraysCore = "1.4"
7676
Tricks = "0.1.6"
7777
ZygoteRules = "0.2"
7878
julia = "1.6"
@@ -92,10 +92,11 @@ Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
9292
ReverseDiff = "37e2e3b7-166d-5795-8a7a-e32c996b4267"
9393
SafeTestsets = "1bc83da4-3b8d-516f-aca4-4fe02f6d838f"
9494
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
95+
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
9596
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
9697
Tracker = "9f7883ad-71c0-57eb-9f7f-b5c9e6d3789c"
9798
Unitful = "1986cc42-f94f-5a68-af5c-568840ba703d"
9899
Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f"
99100

100101
[targets]
101-
test = ["Distributed", "GeneralizedGenerated", "Measurements", "MonteCarloMeasurements", "Unitful", "LabelledArrays", "ForwardDiff", "InteractiveUtils", "Plots", "Pkg", "Random", "SafeTestsets", "Statistics", "Test", "Distributions"]
102+
test = ["Distributed", "GeneralizedGenerated", "Measurements", "MonteCarloMeasurements", "Unitful", "LabelledArrays", "ForwardDiff", "InteractiveUtils", "Plots", "Pkg", "Random","StaticArrays", "SafeTestsets", "Statistics", "Test", "Distributions"]

src/DiffEqBase.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ end
99

1010
using ArrayInterfaceCore
1111

12-
using StaticArrays # data arrays
12+
using StaticArraysCore # data arrays
1313

1414
using LinearAlgebra, Printf
1515

src/common_defaults.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ end
1515
@inline recursive_length(u::AbstractArray{<:AbstractArray}) = sum(recursive_length, u)
1616
@inline recursive_length(u::RecursiveArrayTools.ArrayPartition) = sum(recursive_length, u.x)
1717
@inline recursive_length(u::RecursiveArrayTools.VectorOfArray) = sum(recursive_length, u.u)
18-
@inline function recursive_length(u::AbstractArray{<:StaticArray{S, <:Number}}) where {S}
18+
@inline function recursive_length(u::AbstractArray{<:StaticArraysCore.StaticArray{S, <:Number}}) where {S}
1919
prod(Size(eltype(u))) * length(u)
2020
end
2121

@@ -29,7 +29,7 @@ end
2929
Base.FastMath.sqrt_fast(real(x) / max(length(u), 1))
3030
end
3131

32-
@inline function ODE_DEFAULT_NORM(u::StaticArrays.StaticArray{<:Tuple, T},
32+
@inline function ODE_DEFAULT_NORM(u::StaticArraysCore.StaticArray{<:Tuple, T},
3333
t) where {T <: Union{AbstractFloat, Complex}}
3434
Base.FastMath.sqrt_fast(real(sum(abs2, u)) / max(length(u), 1))
3535
end

0 commit comments

Comments
 (0)