From 8f19bfc658e092061b3c90d891640ab551524ed7 Mon Sep 17 00:00:00 2001 From: Aayush Sabharwal Date: Wed, 17 Dec 2025 10:40:28 +0530 Subject: [PATCH] feat: use new source tracking functionality --- Project.toml | 4 ++-- src/systems/systems.jl | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Project.toml b/Project.toml index 598905ff81..11ce28f19c 100644 --- a/Project.toml +++ b/Project.toml @@ -98,9 +98,9 @@ Libdl = "1" LinearAlgebra = "1" LinearSolve = "3.19.2" Logging = "1" -ModelingToolkitBase = "1" +ModelingToolkitBase = "1.2" ModelingToolkitStandardLibrary = "2.20" -ModelingToolkitTearing = "1.0.2" +ModelingToolkitTearing = "1.1.0" Moshi = "0.3" NonlinearSolve = "4.3" OffsetArrays = "1" diff --git a/src/systems/systems.jl b/src/systems/systems.jl index faa48f5db0..0776f7057d 100644 --- a/src/systems/systems.jl +++ b/src/systems/systems.jl @@ -27,8 +27,8 @@ function MTKBase.__mtkcompile(sys::System; sort_eqs = true, kwargs...) sys, statemachines = extract_top_level_statemachines(sys) - sys = expand_connections(sys) - state = TearingState(sys; sort_eqs) + sys, source_info = expand_connections(sys, Val(true)) + state = TearingState(sys, source_info; sort_eqs) append!(state.statemachines, statemachines) @unpack structure, fullvars = state