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 8010eb8 commit 91603b7Copy full SHA for 91603b7
test/downstream/default_linsolve_structure.jl
@@ -1,6 +1,6 @@
1
using LinearAlgebra, OrdinaryDiffEq, Test
2
f = (du,u,p,t) -> du .= u ./ t
3
-jac = (J,u,p,t) -> (J[1,1] = 1/t; J[2,2] = 1/t; J)
+jac = (J,u,p,t) -> (J[1,1] = 1/t; J[2,2] = 1/t; J[1,2] = 0; J[2,1] = 0)
4
5
jp_diag = Diagonal(zeros(2))
6
fun = ODEFunction(f; jac=jac, jac_prototype=jp_diag)
0 commit comments