Skip to content

Commit

Permalink
Simplify fsgrid reading
Browse files Browse the repository at this point in the history
  • Loading branch information
henry2004y committed Jul 19, 2023
1 parent f9a83c0 commit 5c52fc5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/vlsv/vlsvreader.jl
Original file line number Diff line number Diff line change
Expand Up @@ -521,12 +521,12 @@ function readvariable(meta::MetaVLSV, var::String, sorted::Bool=true, usemmap::B

dataOrdered =
if ndims(raw)::Int64 > 1
@inbounds Array{Float32}(undef, size(raw,1)::Int64, bbox[1], bbox[2], bbox[3])
@inbounds Array{Float32}(undef, size(raw,1)::Int64, bbox...)
else
@inbounds Array{Float32}(undef, bbox[1], bbox[2], bbox[3])
@inbounds Array{Float32}(undef, bbox...)
end

@inbounds fgDecomposition = @views getDomainDecomposition(bbox[1:3], nIORanks)
fgDecomposition = getDomainDecomposition(bbox, nIORanks)

_fillFG!(dataOrdered, raw, fgDecomposition, nIORanks, bbox)

Expand Down

0 comments on commit 5c52fc5

Please sign in to comment.