Skip to content

Commit 6fb6fff

Browse files
authored
add CoupledSDEs(ds::CoupledSDEs, diffeq) method (#231)
* add `CoupledSDEs(ds::CoupledSDEs, diffeq)` method * encrease patch number
1 parent 93a84b7 commit 6fb6fff

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "DynamicalSystemsBase"
22
uuid = "6e36e845-645a-534a-86f2-f5d4aa5a06b4"
33
repo = "https://github.com/JuliaDynamics/DynamicalSystemsBase.jl.git"
4-
version = "3.13.0"
4+
version = "3.13.1"
55

66
[deps]
77
ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210"

ext/src/CoupledSDEs.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ function DynamicalSystemsBase.CoupledSDEs(
9999
integ, deepcopy(prob.p), diffeq, noise_type
100100
)
101101
end
102+
# This preserves the referrenced MTK system and the originally passed diffeq kwargs
103+
CoupledSDEs(ds::CoupledSDEs, diffeq) = CoupledSDEs(SDEProblem(ds), merge(ds.diffeq, diffeq))
102104

103105
"""
104106
CoupledSDEs(ds::CoupledODEs, p; kwargs...)

0 commit comments

Comments
 (0)