Skip to content

Use correct constructors for JacobianOperators in copy - #694

Merged
ChrisRackauckas merged 1 commit into
SciML:masterfrom
jClugstor:fix_JacobianOperators
Sep 3, 2025
Merged

ChrisRackauckas merged 1 commit into
SciML:masterfrom
jClugstor:fix_JacobianOperators

Conversation

@jClugstor

Copy link
Copy Markdown
Member

Checklist

  • Appropriate tests were added
  • Any code changes were done in a way that does not break public API
  • All documentation related to code changes were updated
  • The new code follows the
    contributor guidelines, in particular the SciML Style Guide and
    COLPRAC.
  • Any new documentation only uses public API

Additional context

This should make sure that copy uses the correct constructors for the JacobianOperators. This passes tests locally.

@ChrisRackauckas
ChrisRackauckas merged commit 3fb8930 into SciML:master Sep 3, 2025
ChrisRackauckas-Claude pushed a commit to ChrisRackauckas-Claude/NonlinearSolve.jl that referenced this pull request Apr 15, 2026
HomotopyContinuation.jl v2.18.2 (released 2026-04-12, PR SciML#694
"patch decompose for dimension 0") changed the numerical behavior of
path tracking on systems with no real roots. The
`lib/NonlinearSolveHomotopyContinuation/test/allroots.jl` "no real
solutions" testset regresses under v2.18.2:

    _prob = remake(prob; p = zeros(2))
    _sol  = solve(_prob, _alg)
    @test !_sol.converged
    @test length(_sol) == 1               # fails: Evaluated: 2 == 1
    @test !SciMLBase.successful_retcode(_sol.u[1])

`HC.solve(hcsys)` continues to report `# total solutions (real): 6 (0)`
(6 complex roots, 0 real) as on v2.18.1, but
`HC.results(orig_sol; only_real = true)` now returns 2 near-real
complex roots that survive its imaginary-part threshold after the
decompose patch. Our wrapper (`solve.jl:72`) then exits the
`isempty(realsols)` branch, runs the denominator/unpolynomialize
pipeline, and returns an `EnsembleSolution` of length 2 instead of
the length-1 sentinel the test expects.

Reproducible locally on a fresh depot with only this package's deps
resolved — affects every `vector u - (oop|iip) + (forwarddiff|jac|enzyme)`
test case in `AllRoots` (6 failures out of 169). Manifests as
consistent CI failures on `CI (NonlinearSolveHomotopyContinuation)` for
every PR that resolves HomotopyContinuation v2.18.2 (e.g. SciML#910).

**What we should do:** file an upstream issue against
HomotopyContinuation.jl clarifying whether the tightened
`only_real = true` threshold is intentional (test should relax) or
regressive (upstream should tighten). Until that is resolved, cap the
compat range at `2.12.0 - 2.18.1` so that our CI continues to reflect
the behavior we actually test against. Lift the cap once the upstream
fix or a test update lands.

Bumps `NonlinearSolveHomotopyContinuation` 0.1.8 → 0.1.9.

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants