From aa02da738bac1ab4acea79fd5dd2a974aa162704 Mon Sep 17 00:00:00 2001 From: Christopher Rackauckas Date: Mon, 20 May 2024 13:25:42 -0400 Subject: [PATCH] fix import --- src/OrdinaryDiffEq.jl | 2 +- src/initialize_dae.jl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/OrdinaryDiffEq.jl b/src/OrdinaryDiffEq.jl index ae6b2001ab..505f8c72ac 100644 --- a/src/OrdinaryDiffEq.jl +++ b/src/OrdinaryDiffEq.jl @@ -108,7 +108,7 @@ import ADTypes: AbstractADType, import Polyester using MacroTools, Adapt -using SciMLStructures: canonicalize, Tunable +using SciMLStructures: canonicalize, Tunable, isscimlstructure const CompiledFloats = Union{Float32, Float64, ForwardDiff.Dual{ diff --git a/src/initialize_dae.jl b/src/initialize_dae.jl index 6d6669a5ec..9404d9531f 100644 --- a/src/initialize_dae.jl +++ b/src/initialize_dae.jl @@ -528,7 +528,7 @@ function _initialize_dae!(integrator, prob::ODEProblem, if isAD csize = count(algebraic_vars) if !(p isa SciMLBase.NullParameters) && typeof(_u) !== typeof(u) - if SciMLStructures.isscimlstructure(p) + if isscimlstructure(p) csize = max(csize, length(canonicalize(Tunable(), p)[1])) else csize = max(csize, length(p))