Skip to content

Commit

Permalink
Use regular vector but not Mvector
Browse files Browse the repository at this point in the history
  • Loading branch information
henry2004y committed Nov 10, 2024
1 parent 055c820 commit 569900d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Batsrus.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ using Printf, Reexport, Requires
using Parsers
using Interpolations: cubic_spline_interpolation, BSpline, Linear, scale, interpolate
import NaturalNeighbours as NN
using StaticArrays: SVector, @SMatrix, SA, MVector
using StaticArrays: SVector, @SMatrix, SA

export BATS,
load, readlogdata, readtecdata, showhead, # io
Expand Down
4 changes: 2 additions & 2 deletions src/io.jl
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ function getfilesize(fileID::IOStream, lenstr::Int32, ::Val{Real4Bat})
tmp = read(fileID, Int32)
nw = read(fileID, Int32)
skip(fileID, 2*TAG)
nx = MVector{Int(ndim), Int32}(undef)
nx = Vector{Int32}(undef, ndim)
read!(fileID, nx)
skip(fileID, 2*TAG)
if tmp > 0
Expand All @@ -353,7 +353,7 @@ function getfilesize(fileID::IOStream, lenstr::Int32, ::Val{Real8Bat})
tmp = read(fileID, Int32)
nw = read(fileID, Int32)
skip(fileID, 2*TAG)
nx = MVector{Int(ndim), Int32}(undef)
nx = Vector{Int32}(undef, ndim)
read!(fileID, nx)
skip(fileID, 2*TAG)
if tmp > 0
Expand Down

0 comments on commit 569900d

Please sign in to comment.