From a7dfd633187b53af1714fc0942641cc7a7e06473 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olav=20M=C3=B8yner?= Date: Tue, 21 Feb 2023 19:30:09 +0100 Subject: [PATCH] Clean up --- src/mrst_input.jl | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/mrst_input.jl b/src/mrst_input.jl index a531906e..f3cec7fa 100644 --- a/src/mrst_input.jl +++ b/src/mrst_input.jl @@ -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] @@ -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)