Skip to content

Commit 638a668

Browse files
Merge pull request #4149 from SciML/as/misc-system
feat: add `MiscSystemData` metadata key
2 parents 1dc34c6 + b79914d commit 638a668

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

lib/ModelingToolkitBase/src/ModelingToolkitBase.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,7 @@ export AbstractCollocation, JuMPCollocation, InfiniteOptCollocation,
324324
CasADiCollocation, PyomoCollocation
325325
export DynamicOptSolution
326326
export MissingGuessValue
327+
export MiscSystemData
327328

328329
const set_scalar_metadata = setmetadata
329330

lib/ModelingToolkitBase/src/systems/system.jl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@ abstract type MutableCacheKey end
1616

1717
const MutableCacheT = Dict{DataType, Any}
1818

19+
"""
20+
$TYPEDEF
21+
22+
Utility metadata key for adding miscellaneous/one-off metadata to systems.
23+
"""
24+
abstract type MiscSystemData end
25+
1926
"""
2027
$(TYPEDEF)
2128

0 commit comments

Comments
 (0)