Skip to content

Commit b58fd31

Browse files
fix: fix linearization_function with analysis points mutating the system
1 parent 99dba02 commit b58fd31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/systems/analysis_points.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -950,7 +950,7 @@ function linearization_function(sys::AbstractSystem,
950950
if output isa AnalysisPoint
951951
sys, (output_var,) = apply_transformation(AddVariable(output), sys)
952952
sys, (input_var,) = apply_transformation(GetInput(output), sys)
953-
push!(get_eqs(sys), output_var ~ input_var)
953+
@set! sys.eqs = [get_eqs(sys); output_var ~ input_var]
954954
else
955955
output_var = output
956956
end

0 commit comments

Comments
 (0)