You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Blocks/analysis_points.jl
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ function ap_var(sys)
13
13
# collect to turn symbolic arrays into arrays of symbols
14
14
returnlength(sys.u) ==1? sys.u :collect(sys.u)
15
15
end
16
-
x =states(sys)
16
+
x =unknowns(sys)
17
17
length(x) ==1&&return x[1]
18
18
error("Could not determine the analysis-point variable in system $(nameof(sys)). To use an analysis point, apply it to a connection between two causal blocks containing connectors of type `RealInput/RealOutput` from ModelingToolkitStandardLibrary.Blocks.")
0 commit comments