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 d0824f7 commit a6347c4Copy full SHA for a6347c4
src/solve.jl
@@ -211,10 +211,13 @@ function DiffEqBase.__init(
211
end
212
rateType = typeof(rate_prototype) ## Can be different if united
213
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
+
+ if is_diagonal_noise(prob)
+ if prob.f isa DynamicalSDEFunction
+ noise_rate_prototype = rate_prototype.x[1]
218
+ else
219
+ noise_rate_prototype = rate_prototype
220
+ end
221
elseif prob isa DiffEqBase.AbstractRODEProblem
222
if prob isa DiffEqBase.AbstractSDEProblem
223
noise_rate_prototype = copy(prob.noise_rate_prototype)
0 commit comments