Skip to content

Commit

Permalink
Add EDITNNC
Browse files Browse the repository at this point in the history
  • Loading branch information
moyner committed Mar 7, 2024
1 parent 6194b9e commit 897b658
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/InputParser/keywords/special.jl
Original file line number Diff line number Diff line change
Expand Up @@ -365,3 +365,19 @@ function apply_minmax!(target, lim, I, J, K, dims, F)
end
end
end

function parse_keyword!(data, outer_data, units, cfg, f, ::Val{:EDITNNC})
rec = read_record(f)
grid = outer_data["GRID"]
dims = grid["cartDims"]

while length(rec) > 0
parsed = parse_defaulted_line(rec, [-1, -1, -1, -1, -1, -1, 1.0, 0, 0, 0, 0, "X+", "X+", 0.0])
for i in 1:6
@assert parsed[i] > 0 "Entry $i in record $parsed was defaulted."
end
push_and_create!(data, "EDITNNC", parsed)
rec = read_record(f)
end
parser_message(cfg, outer_data, "EDITNNC", PARSER_JUTULDARCY_MISSING_SUPPORT)
end

0 comments on commit 897b658

Please sign in to comment.