Skip to content

Commit d91a0be

Browse files
committed
Fix field2array error message
1 parent a7bb4ec commit d91a0be

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Fields/Fields.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -664,7 +664,7 @@ element type of the array is the same as the struct type of `field`.
664664
"""
665665
function field2array(field::Field)
666666
if sizeof(eltype(field)) != sizeof(eltype(parent(field)))
667-
f_axis_size = sizeof(eltype(parent(field))) ÷ sizeof(eltype(field))
667+
f_axis_size = sizeof(eltype(field)) ÷ sizeof(eltype(parent(field)))
668668
error("unable to use field2array because each Field element is \
669669
represented by $f_axis_size array elements (must be 1)")
670670
end

0 commit comments

Comments
 (0)