Skip to content

Conversation

@ChrisRackauckas-Claude
Copy link
Contributor

Summary

  • Added isadaptive to the imports from SciMLBase in NonlinearSolveBase.jl
  • The isadaptive function is used in solve.jl at lines 647 and 669 but was never imported

Problem

When solving a SteadyStateProblem with adjoint sensitivity analysis (e.g., using QuadratureAdjoint()), the following error occurs:

UndefVarError: `isadaptive` not defined in `NonlinearSolveBase`

This happens because isadaptive(alg) is called in _solve_forward and _solve_adjoint functions to check if the algorithm uses adaptive timestepping, but the function was never imported from SciMLBase.

Test plan

🤖 Generated with Claude Code

@ChrisRackauckas-Claude ChrisRackauckas-Claude force-pushed the fix-isadaptive-import branch 4 times, most recently from c781525 to 2d41ee3 Compare December 18, 2025 08:37
Changes to NonlinearSolveBase:
- Removed `isadapt` parameter from all `get_concrete_problem` signatures
- Hardcoded `true` in `get_concrete_u0` calls
- Updated all callers to not pass the `true` argument

The `isadapt` parameter is only meaningful for ODE solvers with adaptive
timestepping. For nonlinear problems, this concept doesn't apply.

Changes to NonlinearSolveHomotopyContinuation:
- Simplified Aqua tests since persistent_tasks now passes on Julia 1.11+

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@ChrisRackauckas ChrisRackauckas merged commit e47b894 into SciML:master Dec 18, 2025
113 of 134 checks passed
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