Skip to content

Commit 31e8d6e

Browse files
committed
test: remove sparsedifftools and symbolics from tests
1 parent fa69751 commit 31e8d6e

File tree

4 files changed

+8
-12
lines changed

4 files changed

+8
-12
lines changed

Project.toml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -110,15 +110,13 @@ Setfield = "1.1.1"
110110
SimpleNonlinearSolve = "1.12.3"
111111
SparseArrays = "1.10"
112112
SparseConnectivityTracer = "0.6.5"
113-
SparseDiffTools = "2.22"
114113
SparseMatrixColorings = "0.4.2"
115114
SpeedMapping = "0.3"
116115
StableRNGs = "1"
117116
StaticArrays = "1.9"
118117
StaticArraysCore = "1.4"
119118
Sundials = "4.23.1"
120119
SymbolicIndexingInterface = "0.3.31"
121-
Symbolics = "6.12"
122120
Test = "1.10"
123121
TimerOutputs = "0.5.23"
124122
Zygote = "0.6.69"
@@ -147,14 +145,12 @@ Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
147145
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
148146
ReTestItems = "817f1d60-ba6b-4fd5-9520-3cf149f6a823"
149147
SIAMFANLEquations = "084e46ad-d928-497d-ad5e-07fa361a48c4"
150-
SparseDiffTools = "47a9eef4-7e08-11e9-0b38-333d64bd3804"
151148
SpeedMapping = "f1835b91-879b-4a3f-a438-e4baacf14412"
152149
StableRNGs = "860ef19b-820b-49d6-a774-d7a799459cd3"
153150
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
154151
Sundials = "c3572dad-4567-51f8-b174-8c6c989267f4"
155-
Symbolics = "0c5d862f-8b57-4792-8d23-62f2024744c7"
156152
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
157153
Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f"
158154

159155
[targets]
160-
test = ["Aqua", "BandedMatrices", "BenchmarkTools", "CUDA", "Enzyme", "ExplicitImports", "FastLevenbergMarquardt", "FixedPointAcceleration", "Hwloc", "InteractiveUtils", "LeastSquaresOptim", "MINPACK", "ModelingToolkit", "NLSolvers", "NLsolve", "NaNMath", "NonlinearProblemLibrary", "OrdinaryDiffEqTsit5", "Pkg", "Random", "ReTestItems", "SIAMFANLEquations", "SparseDiffTools", "SpeedMapping", "StableRNGs", "StaticArrays", "Sundials", "Symbolics", "Test", "Zygote"]
156+
test = ["Aqua", "BandedMatrices", "BenchmarkTools", "CUDA", "Enzyme", "ExplicitImports", "FastLevenbergMarquardt", "FixedPointAcceleration", "Hwloc", "InteractiveUtils", "LeastSquaresOptim", "MINPACK", "ModelingToolkit", "NLSolvers", "NLsolve", "NaNMath", "NonlinearProblemLibrary", "OrdinaryDiffEqTsit5", "Pkg", "Random", "ReTestItems", "SIAMFANLEquations", "SpeedMapping", "StableRNGs", "StaticArrays", "Sundials", "Test", "Zygote"]

docs/src/basics/autodiff.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Automatic Differentiation Backends
22

33
!!! note
4-
4+
55
We support all backends supported by DifferentiationInterface.jl. Please refer to
66
the [backends page](https://gdalle.github.io/DifferentiationInterface.jl/DifferentiationInterface/stable/explanation/backends/)
77
for more information.
@@ -28,6 +28,6 @@
2828
in-place and out-of-place functions.
2929

3030
!!! tip
31-
31+
3232
For sparsity detection and sparse AD take a look at
3333
[sparsity detection](@ref sparsity-detection).

test/core/rootfind_tests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@testsetup module CoreRootfindTesting
22
using Reexport
33
@reexport using BenchmarkTools, LinearSolve, NonlinearSolve, StaticArrays, Random,
4-
LinearAlgebra, ForwardDiff, Zygote, Enzyme, SparseDiffTools, DiffEqBase
4+
LinearAlgebra, ForwardDiff, Zygote, Enzyme, DiffEqBase
55

66
_nameof(x) = applicable(nameof, x) ? nameof(x) : _nameof(typeof(x))
77

test/misc/bruss_tests.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
@testitem "Brusselator 2D" tags=[:misc] begin
2-
using LinearAlgebra, SparseArrays, SparseConnectivityTracer, Symbolics
2+
using LinearAlgebra, SparseArrays, SparseConnectivityTracer, ADTypes
33

44
const N = 32
55
const xyd_brusselator = range(0, stop = 1, length = N)
@@ -63,9 +63,9 @@
6363
NewtonRaphson(autodiff = AutoSparse(AutoFiniteDiff())); abstol = 1e-8)
6464
@test norm(sol.resid, Inf) < 1e-8
6565

66-
du0 = copy(u0)
67-
jac_prototype = Symbolics.jacobian_sparsity(
68-
(du, u) -> brusselator_2d_loop(du, u, p), du0, u0)
66+
f! = (du, u) -> brusselator_2d_loop(du, u, p)
67+
du0 = similar(u0)
68+
jac_prototype = ADTypes.jacobian_sparsity(f!, du0, u0, TracerSparsityDetector())
6969

7070
ff_iip = NonlinearFunction(brusselator_2d_loop; jac_prototype)
7171
prob_brusselator_2d = NonlinearProblem(ff_iip, u0, p)

0 commit comments

Comments
 (0)