Skip to content

Commit

Permalink
Add support for WELLSHUT
Browse files Browse the repository at this point in the history
  • Loading branch information
moyner committed Aug 25, 2024
1 parent fc748a2 commit 9a646f5
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/InputParser/InputParser.jl
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,5 @@ module InputParser
skip_kw!(:GCONINJE, Inf, PARSER_MISSING_SUPPORT)
skip_kw!(:WTEST, Inf, PARSER_MISSING_SUPPORT)
skip_kw!(:WLIST, Inf, PARSER_MISSING_SUPPORT)
skip_kw!(:WELLSHUT, Inf, PARSER_MISSING_SUPPORT)
end
end
15 changes: 15 additions & 0 deletions src/InputParser/keywords/schedule.jl
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,21 @@ function parse_keyword!(data, outer_data, units, cfg, f, ::Val{:WELOPEN})
push_and_create!(data, "WELOPEN", welopen)
end

function parse_keyword!(data, outer_data, units, cfg, f, ::Val{:WELLSHUT})
# WELLSHUT is recommended to be replaced with WELOPEN. For simplicity we
# convert WELLSHUT to the corresponding WELOPEN arguments.
parser_message(cfg, outer_data, "WELLSHUT", "Converting WELLSHUT to equivialent WELOPEN inputs.", color = :green)
d = "Default"
defaults = [d]
wells = get_wells(outer_data)
wellshut = parse_defaulted_group_well(f, defaults, wells, 1)
welopen = []
for w in wellshut
push!(welopen, [w, "SHUT"], -1, -1, -1, -1, -1)
end
push_and_create!(data, "WELOPEN", welopen)
end

function parse_keyword!(data, outer_data, units, cfg, f, ::Val{:WCONPROD})
d = "Default"
defaults = [
Expand Down

0 comments on commit 9a646f5

Please sign in to comment.