Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/src/API/System.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/systems/clock_inference.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion src/systems/systemstructure.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
Loading