Skip to content

Commit

Permalink
Fix ElasticArray tests
Browse files Browse the repository at this point in the history
This is kind of a hack, but it looks like there was a major regression in that library and I'm not quite sure why, but given I found this while working on SciML/SciMLBase.jl#1 I'm putting a fix to ElasticArrays right inline and will upstream that later. I'm kind of confused because I don't see a recent tag from ElasticArrays but it could've been a versioning thing.
  • Loading branch information
ChrisRackauckas committed Jan 27, 2021
1 parent cdae3db commit d1dd6c4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/integrators/ode_cache_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,11 @@ affect_matrix! = function (integrator)
end
callback_matrix = ContinuousCallback(condition_matrix, affect_matrix!)

Base.similar(x::ElasticArrays.ElasticArray, ::Type{T}) where T = deepcopy(x)
Base.copy(x::ElasticArrays.ElasticArray) = deepcopy(x)
Base.zero(x::ElasticArrays.ElasticArray) = ElasticArray(zero(Array(x)))
Base.resize!(x::ElasticArrays.ElasticArray,i::Tuple) = resize!(x,i...)

for alg in CACHE_TEST_ALGS
OrdinaryDiffEq.isimplicit(alg) && continue # this restriction should be removed in the future
@show alg
Expand Down

0 comments on commit d1dd6c4

Please sign in to comment.