@@ -325,11 +325,16 @@ struct ReactionSystem{V <: NetworkProperties} <:
325
325
complete: if a model `sys` is complete, then `sys.x` no longer performs namespacing.
326
326
"""
327
327
complete:: Bool
328
+ """
329
+ The hierarchical parent system before simplification that MTK now seems to require for
330
+ hierarchical namespacing to work in indexing.
331
+ """
332
+ parent:: Any
328
333
329
334
# inner constructor is considered private and may change between non-breaking releases.
330
335
function ReactionSystem (eqs, rxs, iv, sivs, unknowns, spcs, ps, var_to_name, observed,
331
336
name, systems, defaults, connection_type, nps, cls, cevs, devs,
332
- metadata = nothing , complete = false ; checks:: Bool = true )
337
+ metadata = nothing , complete = false , parent = nothing ; checks:: Bool = true )
333
338
334
339
# Checks that all parameters have the appropriate Symbolics type.
335
340
for p in ps
@@ -358,7 +363,7 @@ struct ReactionSystem{V <: NetworkProperties} <:
358
363
rs = new {typeof(nps)} (
359
364
eqs, rxs, iv, sivs, unknowns, spcs, ps, var_to_name, observed,
360
365
name, systems, defaults, connection_type, nps, cls, cevs,
361
- devs, metadata, complete)
366
+ devs, metadata, complete, parent )
362
367
checks && validate (rs)
363
368
rs
364
369
end
0 commit comments