Skip to content

Commit 8361feb

Browse files
Merge pull request #92 from SciML/dw/bugfix_dde_constant_2delays_oop
Fix bug in `prob_dde_constant_2delays_oop`
2 parents a5a0475 + c626c5f commit 8361feb

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

lib/DDEProblemLibrary/Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "DDEProblemLibrary"
22
uuid = "f42792ee-6ffc-4e2a-ae83-8ee2f22de800"
3-
version = "0.1.1"
3+
version = "0.1.2"
44

55
[deps]
66
DiffEqBase = "2b5f629d-d688-5b77-993f-72d75c75574e"
@@ -14,4 +14,4 @@ julia = "1.6"
1414
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
1515

1616
[targets]
17-
test = ["Aqua"]
17+
test = ["Aqua"]

lib/DDEProblemLibrary/src/constant_delays.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ prob_dde_constant_2delays_oop
315315

316316
function f_dde_constant_2delays_oop(u, h, p, t)
317317
T = typeof(t)
318-
(h(p, t - T(1 / 3)) .+ h(p, t - T(1 / 5))) ./ oneunit(t)
318+
(h(p, t - T(1 / 3)) .+ h(p, t - T(1 / 5))) ./ (-oneunit(t))
319319
end
320320

321321
const prob_dde_constant_2delays_oop = DDEProblem(DDEFunction(f_dde_constant_2delays_oop;
@@ -366,7 +366,6 @@ prob_dde_constant_2delays_long_ip
366366
function f_dde_constant_2delays_long_ip!(du, u, h, p, t)
367367
T = typeof(t)
368368
du[1] = -(h(p, t - T(1 / 3); idxs = 1) + h(p, t - T(1 / 5); idxs = 1)) / oneunit(t)
369-
370369
nothing
371370
end
372371

0 commit comments

Comments
 (0)