We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
get_root_indp
1 parent 5edf434 commit 99c6ee4Copy full SHA for 99c6ee4
src/solutions/save_idxs.jl
@@ -44,12 +44,18 @@ function as_diffeq_array(vt::Vector{VectorTemplate}, t)
44
return DiffEqArray(typeof(TupleOfArraysWrapper(vt))[], t, (1, 1))
45
end
46
47
-function get_root_indp(indp)
48
- if hasmethod(symbolic_container, Tuple{typeof(indp)}) &&
49
- (sc = symbolic_container(indp)) !== indp
50
- return get_root_indp(sc)
51
- end
52
- return indp
+function get_root_indp(prob::AbstractSciMLProblem)
+ prob.f.sys
+end
+
+function get_root_indp(prob::LinearProblem)
+ get_root_indp(prob.f)
53
54
55
+get_root_indp(::Nothing) = nothing
56
57
+function get_root_indp(f::SymbolicLinearInterface)
58
+ get_root_indp(f.sys)
59
60
61
# Everything from this point on is public API
0 commit comments