We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0eaf97b commit 7a4ee28Copy full SHA for 7a4ee28
src/solve.jl
@@ -210,10 +210,13 @@ function DiffEqBase.__init(
210
end
211
rateType = typeof(rate_prototype) ## Can be different if united
212
213
- if prob.f isa DynamicalSDEFunction
214
- noise_rate_prototype = rate_prototype.x[1]
215
- elseif is_diagonal_noise(prob)
216
- noise_rate_prototype = rate_prototype
+
+ if is_diagonal_noise(prob)
+ if prob.f isa DynamicalSDEFunction
+ noise_rate_prototype = rate_prototype.x[1]
217
+ else
218
+ noise_rate_prototype = rate_prototype
219
+ end
220
elseif prob isa DiffEqBase.AbstractRODEProblem
221
if prob isa DiffEqBase.AbstractSDEProblem
222
noise_rate_prototype = copy(prob.noise_rate_prototype)
0 commit comments