You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/array.jl
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ struct ArrayRepack{T}
8
8
end
9
9
function (f::ArrayRepack)(A)
10
10
@assertlength(A) ==prod(size(f.x))
11
-
ifhas_trivial_array_constructor(f.type, A)
11
+
ifhas_trivial_array_constructor(typeof(f.x), A)
12
12
restructure(f.x, A)
13
13
else
14
14
error("The original type $(typeof(f.x)) does not support the SciMLStructures interface via the AbstractArray `repack` rules. No method exists to take in a regular array and construct the parent type back. Please define the SciMLStructures interface for this type.")
0 commit comments