We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7bb4ec commit d91a0beCopy full SHA for d91a0be
1 file changed
src/Fields/Fields.jl
@@ -664,7 +664,7 @@ element type of the array is the same as the struct type of `field`.
664
"""
665
function field2array(field::Field)
666
if sizeof(eltype(field)) != sizeof(eltype(parent(field)))
667
- f_axis_size = sizeof(eltype(parent(field))) ÷ sizeof(eltype(field))
+ f_axis_size = sizeof(eltype(field)) ÷ sizeof(eltype(parent(field)))
668
error("unable to use field2array because each Field element is \
669
represented by $f_axis_size array elements (must be 1)")
670
end
0 commit comments