Skip to content

Conversation

@ChrisRackauckas-Claude
Copy link

Summary

Adds comprehensive test coverage for SubArray initial conditions in ODEProblems, addressing the regression test request from #1219 (comment).

Tests Added

This PR adds a new test file test/downstream/subarray_support.jl that covers:

Background

PR #1219 fixed a NoFunctionWrapperFoundError that occurred when using SubArrays as initial conditions by opting them out of AutoSpecialize function wrapping. This PR adds the regression tests that were requested in the review to ensure this continues to work.

Test Results

All 9 test cases pass:

  • Basic ODE with SubArray ✓
  • Simple pendulum with SubArray ✓
  • Different SubArray patterns (4 variants) ✓

🤖 Generated with Claude Code

Co-Authored-By: Claude [email protected]

Adds comprehensive test coverage for SubArray initial conditions in ODEProblems,
addressing the regression test request from PR SciML#1219.

Tests cover:
- Basic ODEs with SubArray initial conditions
- Simple pendulum example from issue #2900
- Various SubArray slicing patterns (range, colon, offset)

This ensures that SubArrays work correctly with function wrapping after the
fix in PR SciML#1219 that opts them out of AutoSpecialize.

Fixes SciML#1219 (comment)

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

Co-Authored-By: Claude <[email protected]>
@ChrisRackauckas ChrisRackauckas merged commit 64f65be into SciML:master Nov 9, 2025
33 of 48 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