Skip to content

Commit

Permalink
added a easy test to check that i didn't broke anything with the new …
Browse files Browse the repository at this point in the history
…control vector feature
  • Loading branch information
PaoloBiolghini committed Mar 15, 2024
1 parent b444a75 commit a1b606f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/controlvectortest.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
using SparseArrays, LinearSolve

A = sparse(rand(3,3));
b=rand(3);
prob = LinearProblem(A, b);

#check without contro Vector

Check warning on line 7 in test/controlvectortest.jl

View workflow job for this annotation

GitHub Actions / Spell Check with Typos

"contro" should be "control".
u=solve(prob,UMFPACKFactorization()).u

#check plugging in a control vector
controlv=SparseArrays.UMFPACK.get_umfpack_control(Float64,Int64)
u=solve(prob,UMFPACKFactorization(control=controlv)).u

0 comments on commit a1b606f

Please sign in to comment.