Skip to content

Commit

Permalink
fix unitless read_gadget2-pos
Browse files Browse the repository at this point in the history
  • Loading branch information
islent committed Dec 13, 2021
1 parent f9b73ab commit b37f3d5
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
28 changes: 14 additions & 14 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,17 @@ Unitful = "1986cc42-f94f-5a68-af5c-568840ba703d"
UnitfulAstro = "6112ee07-acf9-5e0f-b108-d242c714bf9f"

[compat]
BangBang = "0.3"
CSV = "0.9"
FileIO = "1"
HDF5 = "0.15"
IterTools = "1.3"
JLD2 = "0.4"
PhysicalParticles = "1"
ProgressMeter = "1"
Reexport = "1"
StaticArrays = "1"
StructArrays = "0.6"
Unitful = "1"
UnitfulAstro = "1"
julia = "1.6"
BangBang = "0.3"
CSV = "0.9"
FileIO = "1"
HDF5 = "0.15"
IterTools = "1.3"
JLD2 = "0.4"
PhysicalParticles = "1"
ProgressMeter = "1"
Reexport = "1"
StaticArrays = "1"
StructArrays = "0.6"
Unitful = "1"
UnitfulAstro = "1"
julia = "1.6"
2 changes: 1 addition & 1 deletion src/Gadget.jl
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ function read_gadget2_pos_kernel(f::Union{IOStream,Stream{format"Gadget2"}}, hea
NumTotal = sum(header.npart)

if isnothing(units)
uLength = 1.0
uLength = nothing
fileuLength = 1.0
else
uLength = getuLength(units)
Expand Down

0 comments on commit b37f3d5

Please sign in to comment.