From 0e378f8b5e7be4691a2332369ecef5ef6aa6f4b7 Mon Sep 17 00:00:00 2001 From: Torkel Loman Date: Sun, 26 Oct 2025 21:56:18 +0000 Subject: [PATCH] fix --- docs/src/API/System.md | 2 +- src/systems/clock_inference.jl | 4 ++-- src/systems/systemstructure.jl | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/src/API/System.md b/docs/src/API/System.md index b6c16ec730..62ce401f84 100644 --- a/docs/src/API/System.md +++ b/docs/src/API/System.md @@ -214,7 +214,7 @@ ModelingToolkit.eqtype_supports_collect_vars ModelingToolkit.modified_unknowns! ``` -## Namepsace manipulation +## Namespace manipulation ModelingToolkit namespaces variables from subsystems when using them in a parent system to disambiguate from identically named variables in other subsystems or the parent system. The diff --git a/src/systems/clock_inference.jl b/src/systems/clock_inference.jl index a88e8c42fe..ee9e92ad03 100644 --- a/src/systems/clock_inference.jl +++ b/src/systems/clock_inference.jl @@ -359,7 +359,7 @@ function split_system(ci::ClockInference{S}) where {S} resize_or_push!(cid_to_var, i, cid) end - # breaks the system up into a continous and 0 or more discrete systems + # breaks the system up into a continuous and 0 or more discrete systems tss = similar(cid_to_eq, S) for (id, (ieqs, iieqs, ivars)) in enumerate(zip(cid_to_eq, cid_to_init_eq, cid_to_var)) ts_i = system_subset(ts, ieqs, iieqs, ivars) @@ -369,7 +369,7 @@ function split_system(ci::ClockInference{S}) where {S} end tss[id] = ts_i end - # put the continous system at the back + # put the continuous system at the back if continuous_id != 0 tss[continuous_id], tss[end] = tss[end], tss[continuous_id] inputs[continuous_id], inputs[end] = inputs[end], inputs[continuous_id] diff --git a/src/systems/systemstructure.jl b/src/systems/systemstructure.jl index edad19db5f..b5066a3e98 100644 --- a/src/systems/systemstructure.jl +++ b/src/systems/systemstructure.jl @@ -931,7 +931,7 @@ function mtkcompile!(state::TearingState; simplify = false, end # split_system returns one or two systems and the inputs for each # mod clock inference to be binary - # if it's continous keep going, if not then error unless given trait impl in additional passes + # if it's continuous keep going, if not then error unless given trait impl in additional passes ci = ModelingToolkit.ClockInference(state) ci = ModelingToolkit.infer_clocks!(ci) time_domains = merge(Dict(state.fullvars .=> ci.var_domain),