File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 94
94
# Test that refactoring is checked and handled.
95
95
cache = SciMLBase. init (prob1, UMFPACKFactorization (); cache_kwargs... ) # initialize cache
96
96
y = solve (cache)
97
- cache = LinearSolve. set_A (cache, sprand (n, n, 0.8 ))
98
- y2 = solve (cache) # we just need to know this doesn't fail.
97
+ X = sprand (sprand (n, n, 0.8 ))
98
+ cache = LinearSolve. set_A (cache, X)
99
+ @test X * solve (cache) ≈ b1
99
100
end
100
101
101
102
@testset " KLU Factorization" begin
114
115
# Test that refactoring wrong is checked and handled.
115
116
cache = SciMLBase. init (prob1, KLUFactorization (); cache_kwargs... ) # initialize cache
116
117
y = solve (cache)
117
- cache = LinearSolve. set_A (cache, sprand (n, n, 0.8 ))
118
- y2 = solve (cache)
118
+ X = sprand (sprand (n, n, 0.8 ))
119
+ cache = LinearSolve. set_A (cache, X)
120
+ @test X * solve (cache) ≈ b1
119
121
end
120
122
121
123
@testset " FastLAPACK Factorizations" begin
You can’t perform that action at this time.
0 commit comments