Skip to content

Commit 63a6491

Browse files
authored
Merge branch 'master' into kg/cbfix3
2 parents fabef51 + 6b86f42 commit 63a6491

File tree

9 files changed

+35
-6
lines changed

9 files changed

+35
-6
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "DiffEqBase"
22
uuid = "2b5f629d-d688-5b77-993f-72d75c75574e"
33
authors = ["Chris Rackauckas <[email protected]>"]
4-
version = "6.29.2"
4+
version = "6.30.0"
55

66
[deps]
77
ArrayInterface = "4fba245c-0d91-5ea0-9b3e-6abc04ee57a9"

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# DiffEqBase.jl
22

33
[![Join the chat at https://gitter.im/JuliaDiffEq/Lobby](https://badges.gitter.im/JuliaDiffEq/Lobby.svg)](https://gitter.im/JuliaDiffEq/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
4-
[![Build Status](https://travis-ci.org/JuliaDiffEq/DiffEqBase.jl.svg?branch=master)](https://travis-ci.org/JuliaDiffEq/DiffEqBase.jl)
4+
[![Build Status](https://travis-ci.org/SciML/DiffEqBase.jl.svg?branch=master)](https://travis-ci.org/SciML/DiffEqBase.jl)
55
[![Build status](https://ci.appveyor.com/api/projects/status/f480ahs29c85m6ne?svg=true)](https://ci.appveyor.com/project/ChrisRackauckas/diffeqbase-jl-3yke2)
66
[![GitlabCI](https://gitlab.com/juliadiffeq/DiffEqBase-jl/badges/master/pipeline.svg)](https://gitlab.com/juliadiffeq/DiffEqBase-jl/pipelines)
7-
[![Coverage Status](https://coveralls.io/repos/github/JuliaDiffEq/DiffEqBase.jl/badge.svg)](https://coveralls.io/github/JuliaDiffEq/DiffEqBase.jl)
7+
[![Coverage Status](https://coveralls.io/repos/github/SciML/DiffEqBase.jl/badge.svg)](https://coveralls.io/github/SciML/DiffEqBase.jl)
88
[![codecov.io](http://codecov.io/github/ChrisRackauckas/DiffEqBase.jl/coverage.svg?branch=master)](http://codecov.io/github/ChrisRackauckas/DiffEqBase.jl?branch=master)
99

1010
DiffEqBase.jl is a component package in the DiffEq ecosystem. It holds the

src/diffeqfastbc.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@ diffeqbc(x::Array) = DiffEqBC(x)
1515
diffeqbc(x) = x
1616

1717
# Ensure inlining
18-
@inline combine_axes(A, B) = broadcast_shape(broadcast_axes(A), broadcast_axes(B)) # Julia 1.0 compatible
18+
@static if VERSION < v"1.5.0-DEV.634"
19+
@inline combine_axes(A, B) = broadcast_shape(broadcast_axes(A), broadcast_axes(B)) # Julia 1.0 compatible
20+
end
21+
1922
@inline check_broadcast_axes(shp, A::Union{Number, Array, Broadcasted}) = check_broadcast_shape(shp, axes(A))
2023

2124
@noinline throwfastbc(axesA, axesB) = throw(DimensionMismatch("DiffEq's fast broadcast cannot broadcast $axesA with $axesB"))

src/ensemble/ensemble_solutions.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ end
110110
xlims --> (-Inf,Inf)
111111
ylims --> (-Inf,Inf)
112112
zlims --> (-Inf,Inf)
113-
zcolor --> zcolors[i]
113+
marker_z --> zcolors[i]
114114
sim[i]
115115
end
116116
end

src/integrator_interface.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ Sets the proposed `dt` for the next timestep. If second argument isa `DEIntegrat
126126
first argument to match that of second one. Note that due to PI control and step acceleration this is more than matching
127127
the factors in most cases.
128128
"""
129-
set_proposed_dt!(i::DEIntegrator) = error("modify_proposed_dt!: method has not been implemented for the integrator")
129+
set_proposed_dt!(i::DEIntegrator,dt) = error("set_proposed_dt!: method has not been implemented for the integrator")
130130

131131
"""
132132
savevalues!(integrator::DEIntegrator,

src/solve.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,12 @@ function _concrete_solve(prob::DiffEqBase.DEProblem,alg::DiffEqBase.DEAlgorithm,
210210
RecursiveArrayTools.DiffEqArray(sol.u,sol.t)
211211
end
212212

213+
function _concrete_solve(prob::DiffEqBase.SteadyStateProblem,alg::DiffEqBase.DEAlgorithm,
214+
u0=prob.u0,p=prob.p,args...;kwargs...)
215+
sol = solve(remake(prob,u0=u0,p=p),alg,args...;kwargs...)
216+
RecursiveArrayTools.VectorOfArray(sol.u)
217+
end
218+
213219
function ChainRulesCore.frule(::typeof(concrete_solve),prob,alg,u0,p,args...;
214220
sensealg=nothing,kwargs...)
215221
_concrete_solve_forward(prob,alg,sensealg,u0,p,args...;kwargs...)

test/downstream/Project.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ DiffEqBase = "2b5f629d-d688-5b77-993f-72d75c75574e"
33
DiffEqCallbacks = "459566f4-90b8-5000-8ac3-15dfb0a30def"
44
DiffEqProblemLibrary = "a077e3f3-b75c-5d7f-a0c6-6bc4c8ec64a9"
55
OrdinaryDiffEq = "1dea7af3-3e70-54e6-95c3-0bf5283fa5ed"
6+
SteadyStateDiffEq = "9672c7b4-1e72-59bd-8a11-6ac3964bc41f"
67
StochasticDiffEq = "789caeaf-c7a9-5a7d-9973-96adeb23e2a0"
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
using OrdinaryDiffEq, StochasticDiffEq, SteadyStateDiffEq, RecursiveArrayTools, Test
2+
3+
function f!(du,u,p,t)
4+
du[1] = p[1] + p[2]*u[1]
5+
du[2] = p[3]*u[1] + p[4]*u[2]
6+
end
7+
u0 = zeros(2)
8+
p = [2.0,-2.0,1.0,-4.0]
9+
10+
probODE = ODEProblem(f!,u0,(0.0,10.0),p)
11+
probSS = SteadyStateProblem(f!,u0,p)
12+
13+
solODE = concrete_solve(probODE,Tsit5(), abstol=1e-14,reltol=1e-14)
14+
solSS = concrete_solve(probSS,DynamicSS(Rodas5()))
15+
16+
@test solSS.u solODE.u[end] rtol = 1e-8
17+
@test length(fieldnames(typeof(solODE))) == 2
18+
@test length(fieldnames(typeof(solSS))) == 1

test/runtests.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ if !is_APPVEYOR && GROUP == "Downstream"
4646
@time @safetestset "PSOS and Energy Conservation Event Detection" begin include("downstream/psos_and_energy_conservation.jl") end
4747
@time @safetestset "DE stats" begin include("downstream/destats_tests.jl") end
4848
@time @safetestset "DEDataArray" begin include("downstream/data_array_regression_tests.jl") end
49+
@time @safetestset "Concrete_solve Tests" begin include("downstream/concrete_solve_tests.jl") end
4950
@time @safetestset "AD Tests" begin include("downstream/ad_tests.jl") end
5051
end
5152

0 commit comments

Comments
 (0)