Skip to content

Commit 6bae6b3

Browse files
committed
Use Sparspak when handling sparse system
1 parent 3de1d4e commit 6bae6b3

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

Project.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ PrecompileTools = "aea7be01-6a6a-4083-8856-8a6e6704d82a"
2525
Preferences = "21216c6a-2e73-6563-6e65-726566657250"
2626
Reexport = "189a3867-3050-52da-a836-e630ba90ab69"
2727
SciMLBase = "0bca4576-84f4-4d90-8ffe-ffa030f20462"
28+
SciMLJacobianOperators = "19f34311-ddf3-4b8b-af20-060888a46c0e"
2829
SimpleNonlinearSolve = "727e6d20-b764-4bd8-a329-72de5adea6c7"
2930
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
3031
SparseMatrixColorings = "0a514795-09f3-496d-8182-132a7b665d35"

lib/NonlinearSolveFirstOrder/Project.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ Setfield = "1.1.1"
5656
SparseArrays = "1.10"
5757
SparseConnectivityTracer = "0.6.8"
5858
SparseMatrixColorings = "0.4.5"
59+
Sparspak = "0.3.9"
5960
StableRNGs = "1"
6061
StaticArrays = "1.9.8"
6162
StaticArraysCore = "1.4.3"
@@ -81,10 +82,11 @@ ReTestItems = "817f1d60-ba6b-4fd5-9520-3cf149f6a823"
8182
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
8283
SparseConnectivityTracer = "9f842d2f-2579-4b1d-911e-f412cf18a3f5"
8384
SparseMatrixColorings = "0a514795-09f3-496d-8182-132a7b665d35"
85+
Sparspak = "e56a9233-b9d6-4f03-8d0f-1825330902ac"
8486
StableRNGs = "860ef19b-820b-49d6-a774-d7a799459cd3"
8587
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
8688
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
8789
Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f"
8890

8991
[targets]
90-
test = ["Aqua", "BandedMatrices", "BenchmarkTools", "ForwardDiff", "Enzyme", "ExplicitImports", "Hwloc", "InteractiveUtils", "LineSearch", "LineSearches", "NonlinearProblemLibrary", "Pkg", "Random", "ReTestItems", "SparseArrays", "SparseConnectivityTracer", "SparseMatrixColorings", "StableRNGs", "StaticArrays", "Test", "Zygote"]
92+
test = ["Aqua", "BandedMatrices", "BenchmarkTools", "ForwardDiff", "Enzyme", "ExplicitImports", "Hwloc", "InteractiveUtils", "LineSearch", "LineSearches", "NonlinearProblemLibrary", "Pkg", "Random", "ReTestItems", "SparseArrays", "SparseConnectivityTracer", "SparseMatrixColorings", "Sparspak", "StableRNGs", "StaticArrays", "Test", "Zygote"]

lib/NonlinearSolveFirstOrder/test/rootfind_tests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ end
393393
end
394394

395395
@testitem "Simple Sparse AutoDiff" setup=[CoreRootfindTesting] tags=[:core] begin
396-
using ADTypes, SparseConnectivityTracer, SparseMatrixColorings
396+
using ADTypes, SparseConnectivityTracer, SparseMatrixColorings, Sparspak
397397

398398
@testset for ad in (AutoForwardDiff(), AutoFiniteDiff(), AutoZygote(), AutoEnzyme())
399399
@testset for u0 in ([1.0, 1.0], 1.0)

lib/NonlinearSolveFirstOrder/test/sparsity_tests.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@testitem "Brusselator 2D" tags=[:core] begin
22
using LinearAlgebra, SparseArrays, SparseConnectivityTracer, ADTypes,
3-
SparseMatrixColorings
3+
SparseMatrixColorings, Sparspak
44

55
const N = 32
66
const xyd_brusselator = range(0, stop = 1, length = N)
@@ -72,7 +72,7 @@ end
7272

7373
@testitem "Structured Jacobians" tags=[:core] begin
7474
using SparseConnectivityTracer, BandedMatrices, LinearAlgebra, SparseArrays,
75-
SparseMatrixColorings
75+
SparseMatrixColorings, Sparspak
7676

7777
N = 16
7878
p = rand(N)

0 commit comments

Comments
 (0)