Commit 1ebab2c
Fix OptimizationFunction{iip} to respect explicit iip parameter
Remove isinplace call from OptimizationFunction{iip} constructor when
iip is explicitly provided. This matches the behavior of ODEFunction
and fixes issue #1103 where functions that fail isinplace checks
(like compiled Reactant functions) cannot be used even when the user
explicitly specifies the iip parameter.
The isinplace check is kept for the non-parameterized
OptimizationFunction constructor where it's needed to infer the iip value.
Fixes #1103
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>1 parent 1eb35ad commit 1ebab2c
File tree
2 files changed
+8
-1
lines changed- src
- test
2 files changed
+8
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4279 | 4279 | | |
4280 | 4280 | | |
4281 | 4281 | | |
4282 | | - | |
4283 | 4282 | | |
4284 | 4283 | | |
4285 | 4284 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
507 | 507 | | |
508 | 508 | | |
509 | 509 | | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
510 | 518 | | |
511 | 519 | | |
512 | 520 | | |
| |||
0 commit comments