Skip to content

Commit c9f7d3c

Browse files
committed
Revert "Default to polyester forward diff"
This reverts commit bb62c6c.
1 parent b4ce45d commit c9f7d3c

File tree

4 files changed

+3
-22
lines changed

4 files changed

+3
-22
lines changed

Project.toml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ FixedPointAcceleration = "817d07cb-a79a-5c30-9a31-890123675176"
3636
LeastSquaresOptim = "0fc2ff8b-aaa3-5acd-a817-1944a5e08891"
3737
MINPACK = "4854310b-de5a-5eb6-a2a5-c1dee2bd17f9"
3838
NLsolve = "2774e3e8-f4cf-5e23-947b-6d7e65073b56"
39-
PolyesterForwardDiff = "98d1487c-24ca-40b6-b7ab-df2af84e126b"
4039
SIAMFANLEquations = "084e46ad-d928-497d-ad5e-07fa361a48c4"
4140
SpeedMapping = "f1835b91-879b-4a3f-a438-e4baacf14412"
4241
Symbolics = "0c5d862f-8b57-4792-8d23-62f2024744c7"
@@ -49,7 +48,6 @@ NonlinearSolveFixedPointAccelerationExt = "FixedPointAcceleration"
4948
NonlinearSolveLeastSquaresOptimExt = "LeastSquaresOptim"
5049
NonlinearSolveMINPACKExt = "MINPACK"
5150
NonlinearSolveNLsolveExt = "NLsolve"
52-
NonlinearSolvePolyesterForwardDiffExt = "PolyesterForwardDiff"
5351
NonlinearSolveSIAMFANLEquationsExt = "SIAMFANLEquations"
5452
NonlinearSolveSpeedMappingExt = "SpeedMapping"
5553
NonlinearSolveSymbolicsExt = "Symbolics"
@@ -85,7 +83,6 @@ Pkg = "1.10"
8583
PrecompileTools = "1.2"
8684
Preferences = "1.4"
8785
Printf = "1.10"
88-
PolyesterForwardDiff = "0.1.1"
8986
Random = "1.91"
9087
RecursiveArrayTools = "3.4"
9188
Reexport = "1.2"
@@ -94,7 +91,7 @@ SafeTestsets = "0.1"
9491
SciMLBase = "2.19.0"
9592
SimpleNonlinearSolve = "1.2"
9693
SparseArrays = "1.10"
97-
SparseDiffTools = "2.16"
94+
SparseDiffTools = "2.14"
9895
SpeedMapping = "0.3"
9996
StableRNGs = "1"
10097
StaticArrays = "1.7"
@@ -124,7 +121,6 @@ NaNMath = "77ba4419-2d1f-58cd-9bb1-8ffee604a2e3"
124121
NonlinearProblemLibrary = "b7050fa9-e91f-4b37-bcee-a89a063da141"
125122
OrdinaryDiffEq = "1dea7af3-3e70-54e6-95c3-0bf5283fa5ed"
126123
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
127-
PolyesterForwardDiff = "98d1487c-24ca-40b6-b7ab-df2af84e126b"
128124
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
129125
SIAMFANLEquations = "084e46ad-d928-497d-ad5e-07fa361a48c4"
130126
SafeTestsets = "1bc83da4-3b8d-516f-aca4-4fe02f6d838f"
@@ -138,4 +134,4 @@ Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
138134
Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f"
139135

140136
[targets]
141-
test = ["Aqua", "Enzyme", "BenchmarkTools", "SafeTestsets", "Pkg", "Test", "ForwardDiff", "StaticArrays", "Symbolics", "LinearSolve", "Random", "LinearAlgebra", "Zygote", "SparseDiffTools", "NonlinearProblemLibrary", "LeastSquaresOptim", "FastLevenbergMarquardt", "NaNMath", "BandedMatrices", "DiffEqBase", "StableRNGs", "MINPACK", "NLsolve", "OrdinaryDiffEq", "SpeedMapping", "FixedPointAcceleration", "SIAMFANLEquations", "Sundials", "PolyesterForwardDiff"]
137+
test = ["Aqua", "Enzyme", "BenchmarkTools", "SafeTestsets", "Pkg", "Test", "ForwardDiff", "StaticArrays", "Symbolics", "LinearSolve", "Random", "LinearAlgebra", "Zygote", "SparseDiffTools", "NonlinearProblemLibrary", "LeastSquaresOptim", "FastLevenbergMarquardt", "NaNMath", "BandedMatrices", "DiffEqBase", "StableRNGs", "MINPACK", "NLsolve", "OrdinaryDiffEq", "SpeedMapping", "FixedPointAcceleration", "SIAMFANLEquations", "Sundials"]

docs/src/tutorials/large_systems.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ The resulting `NonlinearProblem` definition is:
6161

6262
```@example ill_conditioned_nlprob
6363
using NonlinearSolve, LinearAlgebra, SparseArrays, LinearSolve, SparseDiffTools
64-
import PolyesterForwardDiff
6564
6665
const N = 32
6766
const xyd_brusselator = range(0, stop = 1, length = N)

ext/NonlinearSolvePolyesterForwardDiffExt.jl

Lines changed: 0 additions & 7 deletions
This file was deleted.

src/internal/helpers.jl

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,7 @@ function get_concrete_forward_ad(autodiff, prob, sp::Val{test_sparse} = True, ar
6363
use_sparse_ad ? AutoSparseFiniteDiff() : AutoFiniteDiff()
6464
else
6565
tag = ForwardDiff.Tag(NonlinearSolveTag(), eltype(prob.u0))
66-
if use_sparse_ad
67-
AutoSparseForwardDiff(; tag) # Polyester Sparse Mode is not implemented yet
68-
elseif is_extension_loaded(Val(:PolyesterForwardDiff)) &&
69-
!(prob.u0 isa Number || prob.u0 isa SArray)
70-
AutoPolyesterForwardDiff()
71-
else
72-
AutoForwardDiff(; tag)
73-
end
66+
(use_sparse_ad ? AutoSparseForwardDiff : AutoForwardDiff)(; tag)
7467
end
7568
return ad
7669
end

0 commit comments

Comments
 (0)