@@ -69,20 +69,29 @@ struct ConstraintsSystem <: AbstractTimeIndependentSystem
69
69
Substitutions generated by tearing.
70
70
"""
71
71
substitutions:: Any
72
+ """
73
+ If a model `sys` is complete, then `sys.x` no longer performs namespacing.
74
+ """
75
+ complete:: Bool
76
+ """
77
+ Cached data for fast symbolic indexing.
78
+ """
79
+ index_cache:: Union{Nothing, IndexCache}
72
80
73
81
function ConstraintsSystem (tag, constraints, unknowns, ps, var_to_name, observed, jac,
74
82
name,
75
83
systems,
76
84
defaults, connector_type, metadata = nothing ,
77
- tearing_state = nothing , substitutions = nothing ;
85
+ tearing_state = nothing , substitutions = nothing ,
86
+ complete = false , index_cache = nothing ;
78
87
checks:: Union{Bool, Int} = true )
79
88
if checks == true || (checks & CheckUnits) > 0
80
89
u = __get_unit_type (unknowns, ps)
81
90
check_units (u, constraints)
82
91
end
83
92
new (tag, constraints, unknowns, ps, var_to_name, observed, jac, name, systems,
84
93
defaults,
85
- connector_type, metadata, tearing_state, substitutions)
94
+ connector_type, metadata, tearing_state, substitutions, complete, index_cache )
86
95
end
87
96
end
88
97
0 commit comments