From b6a2406478c0eebfef845352069a28d5f6ced3b2 Mon Sep 17 00:00:00 2001 From: Qingyu Qu <2283984853@qq.com> Date: Wed, 4 Dec 2024 12:39:11 +0800 Subject: [PATCH] refactor: Fix nodual_value --- lib/NonlinearSolveBase/ext/NonlinearSolveBaseForwardDiffExt.jl | 3 +-- .../ext/NonlinearSolveQuasiNewtonForwardDiffExt.jl | 2 +- .../ext/NonlinearSolveSpectralMethodsForwardDiffExt.jl | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/NonlinearSolveBase/ext/NonlinearSolveBaseForwardDiffExt.jl b/lib/NonlinearSolveBase/ext/NonlinearSolveBaseForwardDiffExt.jl index 95d077614..4ffafc974 100644 --- a/lib/NonlinearSolveBase/ext/NonlinearSolveBaseForwardDiffExt.jl +++ b/lib/NonlinearSolveBase/ext/NonlinearSolveBaseForwardDiffExt.jl @@ -11,8 +11,7 @@ using SciMLBase: SciMLBase, AbstractNonlinearProblem, IntervalNonlinearProblem, NonlinearProblem, NonlinearLeastSquaresProblem, remake using NonlinearSolveBase: NonlinearSolveBase, ImmutableNonlinearProblem, Utils, InternalAPI, - AbstractNonlinearSolveCache, NonlinearSolvePolyAlgorithm, - NonlinearSolveForwardDiffCache + NonlinearSolvePolyAlgorithm, NonlinearSolveForwardDiffCache const DI = DifferentiationInterface diff --git a/lib/NonlinearSolveQuasiNewton/ext/NonlinearSolveQuasiNewtonForwardDiffExt.jl b/lib/NonlinearSolveQuasiNewton/ext/NonlinearSolveQuasiNewtonForwardDiffExt.jl index ca4e7bb94..7f8de5b2a 100644 --- a/lib/NonlinearSolveQuasiNewton/ext/NonlinearSolveQuasiNewtonForwardDiffExt.jl +++ b/lib/NonlinearSolveQuasiNewton/ext/NonlinearSolveQuasiNewtonForwardDiffExt.jl @@ -4,7 +4,7 @@ using CommonSolve: CommonSolve, init using ForwardDiff: ForwardDiff, Dual using SciMLBase: SciMLBase, NonlinearProblem, NonlinearLeastSquaresProblem -using NonlinearSolveBase: NonlinearSolveBase +using NonlinearSolveBase: NonlinearSolveBase, nondual_value using NonlinearSolveQuasiNewton: QuasiNewtonAlgorithm diff --git a/lib/NonlinearSolveSpectralMethods/ext/NonlinearSolveSpectralMethodsForwardDiffExt.jl b/lib/NonlinearSolveSpectralMethods/ext/NonlinearSolveSpectralMethodsForwardDiffExt.jl index 5dfc559f6..3b04751c8 100644 --- a/lib/NonlinearSolveSpectralMethods/ext/NonlinearSolveSpectralMethodsForwardDiffExt.jl +++ b/lib/NonlinearSolveSpectralMethods/ext/NonlinearSolveSpectralMethodsForwardDiffExt.jl @@ -4,7 +4,7 @@ using CommonSolve: CommonSolve, init using ForwardDiff: ForwardDiff, Dual using SciMLBase: SciMLBase, NonlinearProblem, NonlinearLeastSquaresProblem -using NonlinearSolveBase: NonlinearSolveBase +using NonlinearSolveBase: NonlinearSolveBase, nodual_value using NonlinearSolveSpectralMethods: GeneralizedDFSane