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: ext/Render.jl
+18-3Lines changed: 18 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -82,7 +82,14 @@ mutable struct CacheSol
82
82
vars
83
83
last_t::Float64
84
84
functionCacheSol(model, sol)
85
-
vars =get_all_vars(model) |> unique
85
+
vars =get_all_vars(model, sol) |> unique
86
+
vars =filter(v->!occursin("₊tau(t)", string(v)), vars)
87
+
vars =filter(v->!occursin("₊a_0(t)", string(v)), vars)
88
+
vars =filter(v->!occursin("₊w_a(t)", string(v)), vars)
89
+
vars =filter(v->!occursin("₊v_0(t)", string(v)), vars)
90
+
vars =filter(v->!occursin("₊u(t)", string(v)), vars)
91
+
vars =filter(v->!occursin("₊z_a(t)", string(v)), vars)
92
+
vars =filter(v->!occursin("₊phid(t)", string(v)), vars)
86
93
# Main.vars = vars
87
94
# @show length(vars)
88
95
# filter!(v->ModelingToolkit.SymbolicIndexingInterface.is_variable(sol, v), vars) # To work around https://github.com/SciML/ModelingToolkit.jl/issues/3065
@@ -92,14 +99,22 @@ mutable struct CacheSol
92
99
end
93
100
end
94
101
95
-
functionget_all_vars(model, vars = Multibody.collect_all(unknowns(model)))
102
+
functionget_all_vars(model, sol, vars = Multibody.collect_all(unknowns(model)))
0 commit comments