Skip to content

Commit 42794eb

Browse files
Add missing __has_controljac function definition
Fixes issue #1105 where ODEInputFunction constructor fails with default controljac parameter because __has_controljac function was not defined. Added __has_controljac(f) = hasfield(typeof(f), :controljac) alongside other similar utility functions in scimlfunctions.jl. This follows the same pattern as other __has_* functions in the codebase and allows ODEInputFunction to properly check for controljac field presence. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 274833c commit 42794eb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/scimlfunctions.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4948,6 +4948,7 @@ __has_Wfact(f) = hasfield(typeof(f), :Wfact)
49484948
__has_Wfact_t(f) = hasfield(typeof(f), :Wfact_t)
49494949
__has_W_prototype(f) = hasfield(typeof(f), :W_prototype)
49504950
__has_paramjac(f) = hasfield(typeof(f), :paramjac)
4951+
__has_controljac(f) = hasfield(typeof(f), :controljac)
49514952
__has_jac_prototype(f) = hasfield(typeof(f), :jac_prototype)
49524953
__has_controljac_prototype(f) = hasfield(typeof(f), :controljac_prototype)
49534954
__has_sparsity(f) = hasfield(typeof(f), :sparsity)

0 commit comments

Comments
 (0)