Skip to content

Commit fa575c6

Browse files
committed
test: remove sparsedifftools and symbolics from tests
1 parent 8449406 commit fa575c6

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
@@ -108,15 +108,13 @@ Setfield = "1.1.1"
108108
SimpleNonlinearSolve = "1.12.3"
109109
SparseArrays = "1.10"
110110
SparseConnectivityTracer = "0.6.5"
111-
SparseDiffTools = "2.22"
112111
SparseMatrixColorings = "0.4.2"
113112
SpeedMapping = "0.3"
114113
StableRNGs = "1"
115114
StaticArrays = "1.9"
116115
StaticArraysCore = "1.4"
117116
Sundials = "4.23.1"
118117
SymbolicIndexingInterface = "0.3.31"
119-
Symbolics = "6.12"
120118
Test = "1.10"
121119
TimerOutputs = "0.5.23"
122120
Zygote = "0.6.69"
@@ -145,14 +143,12 @@ Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
145143
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
146144
ReTestItems = "817f1d60-ba6b-4fd5-9520-3cf149f6a823"
147145
SIAMFANLEquations = "084e46ad-d928-497d-ad5e-07fa361a48c4"
148-
SparseDiffTools = "47a9eef4-7e08-11e9-0b38-333d64bd3804"
149146
SpeedMapping = "f1835b91-879b-4a3f-a438-e4baacf14412"
150147
StableRNGs = "860ef19b-820b-49d6-a774-d7a799459cd3"
151148
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
152149
Sundials = "c3572dad-4567-51f8-b174-8c6c989267f4"
153-
Symbolics = "0c5d862f-8b57-4792-8d23-62f2024744c7"
154150
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
155151
Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f"
156152

157153
[targets]
158-
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"]
154+
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)