Skip to content

Commit d078c4c

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/solve.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ function DiffEqBase.__init(
291291
else
292292
randElType = uBottomEltypeNoUnits # Strip units and type info
293293
if prob.f isa DynamicalSDEFunction
294-
rand_prototype = copy(noise_rate_prototype)
294+
rand_prototype = copy(rate_prototype.x[1]) # Noise is a vector of the same size than the number of variables
295295
elseif is_diagonal_noise(prob)
296296
if u isa SArray
297297
rand_prototype = zero(u) # TODO: Array{randElType} for units

0 commit comments

Comments
 (0)