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
function SciMLBase.handle_varmap(varmap, sys::AbstractSystem; field =:states, kwargs...)
113
+
out =varmap_to_vars(varmap, getfield(sys, field); kwargs...)
114
+
return out
115
+
end
116
+
111
117
"""
112
118
$(SIGNATURES)
113
119
@@ -117,12 +123,14 @@ user has `ModelingToolkit` loaded.
117
123
function SciMLBase.process_p_u0_symbolic(prob::ODEProblem, p, u0)
118
124
# check if a symbolic remake is possible
119
125
ifeltype(p) <:Pair
120
-
hasproperty(prob.f, :sys) &&hasfield(typeof(prob.f.sys), :ps) ||throw(ArgumentError("This problem does not support symbolic maps with `remake`, i.e. it does not have a symbolic origin."*
121
-
" Please use `remake` with the `p` keyword argument as a vector of values, paying attention to parameter order."))
throw(ArgumentError("This problem does not support symbolic maps with `remake`, i.e. it does not have a symbolic origin."*
128
+
" Please use `remake` with the `p` keyword argument as a vector of values, paying attention to parameter order."))
122
129
end
123
130
ifeltype(u0) <:Pair
124
-
hasproperty(prob.f, :sys) &&hasfield(typeof(prob.f.sys), :states) ||throw(ArgumentError("This problem does not support symbolic maps with `remake`, i.e. it does not have a symbolic origin."*
125
-
" Please use `remake` with the `u0` keyword argument as a vector of values, paying attention to state order."))
0 commit comments