From 42794ebbf344f68466b0ecea91ddce23cd6993f8 Mon Sep 17 00:00:00 2001 From: ChrisRackauckas Date: Wed, 3 Sep 2025 08:34:58 -0400 Subject: [PATCH] Add missing __has_controljac function definition MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- src/scimlfunctions.jl | 1 + 1 file changed, 1 insertion(+) diff --git a/src/scimlfunctions.jl b/src/scimlfunctions.jl index b0d2fc695..5c4ec2d04 100644 --- a/src/scimlfunctions.jl +++ b/src/scimlfunctions.jl @@ -4948,6 +4948,7 @@ __has_Wfact(f) = hasfield(typeof(f), :Wfact) __has_Wfact_t(f) = hasfield(typeof(f), :Wfact_t) __has_W_prototype(f) = hasfield(typeof(f), :W_prototype) __has_paramjac(f) = hasfield(typeof(f), :paramjac) +__has_controljac(f) = hasfield(typeof(f), :controljac) __has_jac_prototype(f) = hasfield(typeof(f), :jac_prototype) __has_controljac_prototype(f) = hasfield(typeof(f), :controljac_prototype) __has_sparsity(f) = hasfield(typeof(f), :sparsity)