Skip to content

Commit

Permalink
Add missing unit conversion to DX/DY/DZ
Browse files Browse the repository at this point in the history
  • Loading branch information
moyner committed Apr 20, 2024
1 parent a660d64 commit 0dcf0a6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/InputParser/keywords/grid.jl
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,9 @@ end

function parse_keyword!(data, outer_data, units, cfg, f, v::Union{Val{:DX}, Val{:DY}, Val{:DZ}})
k = unpack_val(v)
data["$k"] = parse_grid_vector(f, get_cartdims(outer_data), Float64)
Δ = parse_grid_vector(f, get_cartdims(outer_data), Float64)
swap_unit_system_fast!(Δ, units, Val(:length))
data["$k"] = Δ
end

function unit_type(::Union{Val{:DX}, Val{:DY}, Val{:DZ}})
Expand Down

0 comments on commit 0dcf0a6

Please sign in to comment.