Skip to content

Commit 5189598

Browse files
fix: fix narrow_buffer_type for BlockedArray of arrays
1 parent ee9ee8a commit 5189598

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/systems/parameter_buffer.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,9 @@ function narrow_buffer_type(
198198
end
199199

200200
function narrow_buffer_type(buffer::BlockedArray; container_type = typeof(parent(buffer)))
201+
if eltype(buffer) <: AbstractArray
202+
buffer = narrow_buffer_type.(buffer; container_type)
203+
end
201204
type = Union{}
202205
for x in buffer
203206
type = promote_type(type, typeof(x))

0 commit comments

Comments
 (0)