Skip to content

Commit

Permalink
No longer support Julia ver<1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
henry2004y committed Mar 25, 2021
1 parent 4e47688 commit 275708e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 15 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ WriteVTK = "64499a7a-5c06-52f2-abe2-ccb03c286192"
[compat]
FortranFiles = "0.6.0"
WriteVTK = "1.9.1"
julia = "1"
julia = "1.6"

[extras]
SHA = "ea8e919c-243c-51af-8825-aaa63cd721ce"
Expand Down
14 changes: 0 additions & 14 deletions src/io.jl
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,6 @@ function Base.show(io::IO, s::Data)
println(io, "w = ", s.w)
end

if VERSION < v"1.4"
import Base: read!

"""
read!(s,a)
Read slices of arrays using subarrays, in addition to the built-in methods.
"""
function read!(s::IO, a::AbstractArray{T}) where T
GC.@preserve a unsafe_read(s, pointer(a), sizeof(a))
return a
end
end

"""
readdata(filenameIn, (, dir=".", npict=1, verbose=false))
Expand Down

0 comments on commit 275708e

Please sign in to comment.