Skip to content

Commit a6347c4

Browse files
HadrienChrisRackauckas
authored andcommitted
Allow Dynamical problem to have non diagonal noise
1 parent d0824f7 commit a6347c4

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/solve.jl

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -211,10 +211,13 @@ function DiffEqBase.__init(
211211
end
212212
rateType = typeof(rate_prototype) ## Can be different if united
213213

214-
if prob.f isa DynamicalSDEFunction
215-
noise_rate_prototype = rate_prototype.x[1]
216-
elseif is_diagonal_noise(prob)
217-
noise_rate_prototype = rate_prototype
214+
215+
if is_diagonal_noise(prob)
216+
if prob.f isa DynamicalSDEFunction
217+
noise_rate_prototype = rate_prototype.x[1]
218+
else
219+
noise_rate_prototype = rate_prototype
220+
end
218221
elseif prob isa DiffEqBase.AbstractRODEProblem
219222
if prob isa DiffEqBase.AbstractSDEProblem
220223
noise_rate_prototype = copy(prob.noise_rate_prototype)

0 commit comments

Comments
 (0)