@@ -69,20 +69,29 @@ struct ConstraintsSystem <: AbstractTimeIndependentSystem
6969 Substitutions generated by tearing.
7070 """
7171 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}
7280
7381 function ConstraintsSystem (tag, constraints, unknowns, ps, var_to_name, observed, jac,
7482 name,
7583 systems,
7684 defaults, connector_type, metadata = nothing ,
77- tearing_state = nothing , substitutions = nothing ;
85+ tearing_state = nothing , substitutions = nothing ,
86+ complete = false , index_cache = nothing ;
7887 checks:: Union{Bool, Int} = true )
7988 if checks == true || (checks & CheckUnits) > 0
8089 u = __get_unit_type (unknowns, ps)
8190 check_units (u, constraints)
8291 end
8392 new (tag, constraints, unknowns, ps, var_to_name, observed, jac, name, systems,
8493 defaults,
85- connector_type, metadata, tearing_state, substitutions)
94+ connector_type, metadata, tearing_state, substitutions, complete, index_cache )
8695 end
8796end
8897
0 commit comments