@@ -143,6 +143,10 @@ struct ODESystem <: AbstractODESystem
143143 split_idxs: a vector of vectors of indices for the split parameters.
144144 """
145145 split_idxs:: Union{Nothing, Vector{Vector{Int}}}
146+ """
147+ parent: the hierarchical parent system before simplification.
148+ """
149+ parent:: Any
146150
147151 function ODESystem (tag, deqs, iv, dvs, ps, tspan, var_to_name, ctrls, observed, tgrad,
148152 jac, ctrl_jac, Wfact, Wfact_t, name, systems, defaults,
@@ -151,7 +155,7 @@ struct ODESystem <: AbstractODESystem
151155 tearing_state = nothing ,
152156 substitutions = nothing , complete = false ,
153157 discrete_subsystems = nothing , unknown_states = nothing ,
154- split_idxs = nothing ; checks:: Union{Bool, Int} = true )
158+ split_idxs = nothing , parent = nothing ; checks:: Union{Bool, Int} = true )
155159 if checks == true || (checks & CheckComponents) > 0
156160 check_variables (dvs, iv)
157161 check_parameters (ps, iv)
@@ -165,7 +169,7 @@ struct ODESystem <: AbstractODESystem
165169 ctrl_jac, Wfact, Wfact_t, name, systems, defaults, torn_matching,
166170 connector_type, preface, cevents, devents, metadata, gui_metadata,
167171 tearing_state, substitutions, complete, discrete_subsystems,
168- unknown_states, split_idxs)
172+ unknown_states, split_idxs, parent )
169173 end
170174end
171175
0 commit comments