Commit 4f4bb9b
Fix UndefVarError for generate_ODENLStepData with nlstep=true
Add a function stub in ModelingToolkitBase that throws a helpful error
message when `nlstep=true` is used without ModelingToolkit loaded.
ModelingToolkit then overrides this stub with the actual implementation.
This fixes the issue where calling `ODEProblem(sys, u0, tspan, p; nlstep=true)`
would fail with `UndefVarError: generate_ODENLStepData not defined` because
the function was defined in ModelingToolkit but called from ModelingToolkitBase.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <[email protected]>1 parent 369e793 commit 4f4bb9b
File tree
2 files changed
+15
-1
lines changed- lib/ModelingToolkitBase/src/problems
- src/systems
2 files changed
+15
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
1 | 15 | | |
2 | 16 | | |
3 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
0 commit comments