Skip to content

step! on init(NonlinearProblem(...) with NonlinearSolvePolyAlgorithmCache shows method error #363

@jamblejoe

Description

@jamblejoe

No method error for step! on init(NonlinearProblem(...) with NonlinearSolvePolyAlgorithmCache.

Minimal Reproducible Example 👇

From README:

f(u, p) = u .* u .- 2
u0 = @SVector[1.0, 1.0]
prob = NonlinearProblem(f, u0)
nlcache = init(prob);
step!(nlcache)

Error & Stacktrace ⚠️

ERROR: MethodError: no method matching __step!(::NonlinearSolve.NonlinearSolvePolyAlgorithmCache{false, 7, Tuple{…}, NonlinearSolvePolyAlgorithm{…}})

Closest candidates are:
  __step!(::NonlinearSolve.GeneralizedDFSaneCache{iip}; recompute_jacobian, kwargs...) where iip
   @ NonlinearSolve ~/.julia/packages/NonlinearSolve/UPIol/src/core/spectral_methods.jl:157
  __step!(::NonlinearSolve.GeneralizedFirstOrderAlgorithmCache{iip, GB}; recompute_jacobian, kwargs...) where {iip, GB}
   @ NonlinearSolve ~/.julia/packages/NonlinearSolve/UPIol/src/core/generalized_first_order.jl:203
  __step!(::NonlinearSolve.ApproximateJacobianSolveCache{INV, GB, iip}; recompute_jacobian) where {INV, GB, iip}
   @ NonlinearSolve ~/.julia/packages/NonlinearSolve/UPIol/src/core/approximate_jacobian.jl:220

Stacktrace:
 [1] step!(::NonlinearSolve.NonlinearSolvePolyAlgorithmCache{…}; kwargs::@Kwargs{})
   @ NonlinearSolve ~/.julia/packages/NonlinearSolve/UPIol/src/core/generic.jl:52
 [2] step!(::NonlinearSolve.NonlinearSolvePolyAlgorithmCache{false, 7, Tuple{…}, NonlinearSolvePolyAlgorithm{…}})
   @ NonlinearSolve ~/.julia/packages/NonlinearSolve/UPIol/src/core/generic.jl:48
 [3] top-level scope
   @ REPL[85]:1
Some type information was truncated. Use `show(err)` to see complete types.

Environment (please complete the following information):

  • Output of using Pkg; Pkg.status()
  [8913a72c] NonlinearSolve v3.5.3 `https://github.com/SciML/NonlinearSolve.jl.git#master`
  • Output of versioninfo()
julia> versioninfo()
Julia Version 1.10.0
Commit 3120989f39b (2023-12-25 18:01 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: macOS (arm64-apple-darwin22.4.0)
  CPU: 8 × Apple M1
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-15.0.7 (ORCJIT, apple-m1)
  Threads: 1 on 4 virtual cores

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions