From 0dcf0a697129fb4270c5b2d5b6161b8d866fef78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olav=20M=C3=B8yner?= Date: Sat, 20 Apr 2024 21:38:57 +0200 Subject: [PATCH] Add missing unit conversion to DX/DY/DZ --- src/InputParser/keywords/grid.jl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/InputParser/keywords/grid.jl b/src/InputParser/keywords/grid.jl index 0013d3b..4334215 100644 --- a/src/InputParser/keywords/grid.jl +++ b/src/InputParser/keywords/grid.jl @@ -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}})