Skip to content

Commit

Permalink
test: remove sparsedifftools and symbolics from tests
Browse files Browse the repository at this point in the history
  • Loading branch information
avik-pal committed Oct 3, 2024
1 parent 8449406 commit fa575c6
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 12 deletions.
6 changes: 1 addition & 5 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -108,15 +108,13 @@ Setfield = "1.1.1"
SimpleNonlinearSolve = "1.12.3"
SparseArrays = "1.10"
SparseConnectivityTracer = "0.6.5"
SparseDiffTools = "2.22"
SparseMatrixColorings = "0.4.2"
SpeedMapping = "0.3"
StableRNGs = "1"
StaticArrays = "1.9"
StaticArraysCore = "1.4"
Sundials = "4.23.1"
SymbolicIndexingInterface = "0.3.31"
Symbolics = "6.12"
Test = "1.10"
TimerOutputs = "0.5.23"
Zygote = "0.6.69"
Expand Down Expand Up @@ -145,14 +143,12 @@ Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
ReTestItems = "817f1d60-ba6b-4fd5-9520-3cf149f6a823"
SIAMFANLEquations = "084e46ad-d928-497d-ad5e-07fa361a48c4"
SparseDiffTools = "47a9eef4-7e08-11e9-0b38-333d64bd3804"
SpeedMapping = "f1835b91-879b-4a3f-a438-e4baacf14412"
StableRNGs = "860ef19b-820b-49d6-a774-d7a799459cd3"
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
Sundials = "c3572dad-4567-51f8-b174-8c6c989267f4"
Symbolics = "0c5d862f-8b57-4792-8d23-62f2024744c7"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f"

[targets]
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"]
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"]
4 changes: 2 additions & 2 deletions docs/src/basics/autodiff.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Automatic Differentiation Backends

!!! note

We support all backends supported by DifferentiationInterface.jl. Please refer to
the [backends page](https://gdalle.github.io/DifferentiationInterface.jl/DifferentiationInterface/stable/explanation/backends/)
for more information.
Expand All @@ -28,6 +28,6 @@
in-place and out-of-place functions.

!!! tip

For sparsity detection and sparse AD take a look at
[sparsity detection](@ref sparsity-detection).
2 changes: 1 addition & 1 deletion test/core/rootfind_tests.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@testsetup module CoreRootfindTesting
using Reexport
@reexport using BenchmarkTools, LinearSolve, NonlinearSolve, StaticArrays, Random,
LinearAlgebra, ForwardDiff, Zygote, Enzyme, SparseDiffTools, DiffEqBase
LinearAlgebra, ForwardDiff, Zygote, Enzyme, DiffEqBase

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

Expand Down
8 changes: 4 additions & 4 deletions test/misc/bruss_tests.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@testitem "Brusselator 2D" tags=[:misc] begin
using LinearAlgebra, SparseArrays, SparseConnectivityTracer, Symbolics
using LinearAlgebra, SparseArrays, SparseConnectivityTracer, ADTypes

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

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

ff_iip = NonlinearFunction(brusselator_2d_loop; jac_prototype)
prob_brusselator_2d = NonlinearProblem(ff_iip, u0, p)
Expand Down

0 comments on commit fa575c6

Please sign in to comment.