Skip to content

Commit a1cd959

Browse files
committed
add huge diagonal test
1 parent 50c1134 commit a1cd959

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

test/interface/autosparse_detection_tests.jl

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,16 @@ ad = AutoSparse(AutoForwardDiff(), sparsity_detector = TracerSparsityDetector(),
77

88
prob = prob_ode_2Dlinear
99

10-
@test_nowarn solve(prob, Rodas5(autodiff = ad))
10+
@test_nowarn solve(prob, Rodas5P(autodiff = ad))
1111

12-
@test_nowarn solve(prob, Rodas5(autodiff = ad, linsolve = LinearSolve.KrylovJL_GMRES()))
12+
@test_nowarn solve(prob, Rodas5P(autodiff = ad, linsolve = LinearSolve.KrylovJL_GMRES()))
1313

1414
# Test that no dense matrices are made sparse
15-
diag_prob = ODEProblem((du, u, p, t) -> 1.0 .* u, rand(Int(1e7)), (0, 100.0))
15+
diag_prob = ODEProblem((du, u, p, t) -> du .= -1.0 .* u, rand(Int(1e7)), (0, 1.0))
16+
17+
solve(diag_prob, Rodas5P(autodiff = ad), tspan = (0.0, 1e-8))
1618

1719
@test_nowarn solve(diag_prob, Rodas5P(autodiff = ad))
1820

1921
@test_nowarn solve(
20-
diag_prob, Rodas5P(autodiff = ad, linsolve = LinearSolve.KrylovJL_GMRES()))
22+
diag_prob, Rodas5P(auodiff = ad, linsolve = LinearSolve.KrylovJL_GMRES()))

0 commit comments

Comments
 (0)