Repository navigation
Fix SCCNonlinearProblem not having u0 field (issue #758) - #759
Merged
ChrisRackauckas merged 7 commits intoDec 22, 2025
Merged
Conversation
SCCNonlinearProblem does not have a u0 field - each subproblem has its own u0. The solve function was incorrectly trying to access prob.u0 when u0 was not provided, causing a FieldError. Changes: - Remove the u0 = prob.u0 fallback since SCCNonlinearProblem has no u0 field - Add regression test to prevent this from happening again Closes SciML#758 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
The test item needs to explicitly use SciMLBase to access NonlinearProblem and other types from the module. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
Use `import SCCNonlinearSolve: ...` instead of `using SCCNonlinearSolve` to avoid implicit import of the module name, which causes ExplicitImports tests to fail on macOS CI. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
Member
Author
Additional Fix: ExplicitImports error on macOS CIThe macOS CI was failing due to an ExplicitImports check error: This was a pre-existing issue in the ChainRulesCore extension that became visible during CI. Fixed by changing: using SCCNonlinearSolve
using SCCNonlinearSolve: SCCAlg, scc_solve_upto: import SCCNonlinearSolve: SCCAlg, scc_solve_upThis avoids the implicit import of the module name itself and satisfies the ExplicitImports check. All tests now pass locally (26/26). |
Apply SciML formatting style (spaces around operators and assignments) to the test file to pass CI code-style checks. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
Member
Author
Fix: Code formattingFixed code formatting in test file to pass CI code-style checks:
All 26 SCCNonlinearSolve tests pass locally. |
Align continuation indent for multi-line import statement. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
Restore spaces around ≈ operator that were accidentally removed. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
Member
Author
CI Status SummaryCore tests passing:
Pre-existing CI issues (also failed on merged PR #757):
All code changes have been tested locally and pass. The PR is ready for review. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Changes
u0 = u0 !== nothing ? u0 : prob.u0fallback since SCCNonlinearProblem has no u0 fieldTest plan
u0in SCCNonlinearSolve 1.7 #758u0in SCCNonlinearSolve 1.7 #758Closes #758
🤖 Generated with Claude Code