Skip to content

Commit

Permalink
Put NaN in missing values for EQUALS
Browse files Browse the repository at this point in the history
  • Loading branch information
moyner committed Apr 16, 2024
1 parent aa49089 commit c43b4a8
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/InputParser/keywords/special.jl
Original file line number Diff line number Diff line change
Expand Up @@ -290,17 +290,17 @@ function parse_keyword!(data, outer_data, units, cfg, f, ::Val{:EQUALS})
target = get_operation_section(outer_data, dst)
if ismissing(target)
# TODO: Different keywords go in different spots...
data[dst] = fill(constval, dims...)
else
# Box can be kept.
il = parsed[3]
iu = parsed[4]
jl = parsed[5]
ju = parsed[6]
kl = parsed[7]
ku = parsed[8]
apply_equals!(target, constval, (il, iu), (jl, ju), (kl, ku), dims)
data[dst] = fill(NaN, dims...)
target = data[dst]
end
# Box can be kept.
il = parsed[3]
iu = parsed[4]
jl = parsed[5]
ju = parsed[6]
kl = parsed[7]
ku = parsed[8]
apply_equals!(target, constval, (il, iu), (jl, ju), (kl, ku), dims)
rec = read_record(f)
end
end
Expand Down

0 comments on commit c43b4a8

Please sign in to comment.