SciML / NonlinearSolve.jl

High-performance and differentiation-enabled nonlinear solvers (Newton methods), bracketed rootfinding (bisection, Falsi), with sparsity and Newton-Krylov support.
https://docs.sciml.ai/NonlinearSolve/stable/
MIT License
235 stars 41 forks source link

Deprecation warning with mutating functions #51

Closed amrods closed 1 year ago

amrods commented 2 years ago
using NonlinearSolve

function f!(F, x, _)
    F[1] = (x[1] + 3) * (x[2]^3 - 7) + 18
    F[2] = sin(x[2] * exp(x[1]) - 1)
    nothing
end

x0 = [0.1; 1.2]

prob! = NonlinearProblem{true}(f!, x0)

sol! = solve(prob!, NewtonRaphson())

that last line yield this warning:

Warning: `vendor()` is deprecated, use `BLAS.get_config()` and inspect the output instead
│   caller = (::NonlinearSolve.DefaultLinSolve)(x::Vector{Float64}, A::Matrix{Float64}, b::Vector{Float64}, update_matrix::Bool; tol::Nothing, kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}}) at utils.jl:125
└ @ NonlinearSolve ~/.julia/packages/NonlinearSolve/9GzK0/src/utils.jl:125
u: 2-element Vector{Float64}:
 -3.645318273517821e-8
  1.0000000239478837
ChrisRackauckas commented 2 years ago

This is the same problem as https://github.com/SciML/NonlinearSolve.jl/issues/49