Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
moyner committed Feb 21, 2023
1 parent 7d57793 commit a7dfd63
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/mrst_input.jl
Original file line number Diff line number Diff line change
Expand Up @@ -783,17 +783,13 @@ function setup_case_from_mrst(casename; wells = :ms,
extraout = true, well_type = wells, context = w_context)
param_w = setup_parameters(wi)

wgrid = wi.domain.grid
wc = wi.domain.grid.perforations.reservoir

sv = wi.secondary_variables
sv_m = model.secondary_variables

prm_w = wi.parameters
prm = model.parameters
param_w = setup_parameters(wi)

if wgrid isa MultiSegmentWell
if typeof(wi.system) == typeof(model.system)
sv[:PhaseMassDensities] = sv_m[:PhaseMassDensities]
if haskey(sv, :ShrinkageFactors)
sv[:ShrinkageFactors] = sv_m[:ShrinkageFactors]
Expand Down Expand Up @@ -830,7 +826,6 @@ function setup_case_from_mrst(casename; wells = :ms,
factor = 1.0
end
@debug "$sym: Well $i/$num_wells" typeof(ctrl) ci
# param_w[:reference_densities] = param_res[:reference_densities]

pw = vec(init[:Pressure][res_cells])
w0 = Dict{Symbol, Any}(:Pressure => pw, :TotalMassFlux => 1e-12)
Expand Down

0 comments on commit a7dfd63

Please sign in to comment.