Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions src/problems/sccnonlinearproblem.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
const TypeT = Union{DataType, UnionAll}

struct CacheWriter{F}
fn::F
end
Expand Down Expand Up @@ -161,8 +159,8 @@ function SciMLBase.SCCNonlinearProblem{iip}(sys::System, op; eval_expression = f
end

# map from symtype to cached variables and their expressions
cachevars = Dict{Union{DataType, UnionAll}, Vector{Any}}()
cacheexprs = Dict{Union{DataType, UnionAll}, Vector{Any}}()
cachevars = Dict{TypeT, Vector{Any}}()
cacheexprs = Dict{TypeT, Vector{Any}}()
# observed of previous SCCs are in the cache
# NOTE: When we get proper CSE, we can substitute these
# and then use `subexpressions_not_involving_vars!`
Expand Down
4 changes: 3 additions & 1 deletion src/systems/index_cache.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
const TypeT = Union{DataType, UnionAll, Union}

struct BufferTemplate
type::Union{DataType, UnionAll, Union}
type::TypeT
length::Int
end

Expand Down
Loading