From c80d72e27cc5e085f9192f289ff5b7cb1ae6937c Mon Sep 17 00:00:00 2001 From: Joakim Hove Date: Tue, 19 Nov 2019 20:16:44 +0100 Subject: [PATCH] Removed unused perm and ntg arguments to Well construction --- opm/core/wells/WellsManager.hpp | 6 +----- opm/core/wells/WellsManager_impl.hpp | 21 ++------------------- 2 files changed, 3 insertions(+), 24 deletions(-) diff --git a/opm/core/wells/WellsManager.hpp b/opm/core/wells/WellsManager.hpp index 518a22cf1..e85a247c2 100644 --- a/opm/core/wells/WellsManager.hpp +++ b/opm/core/wells/WellsManager.hpp @@ -27,8 +27,6 @@ #include #include -#include - struct Wells; struct UnstructuredGrid; @@ -173,7 +171,7 @@ namespace Opm std::vector& well_names, const PhaseUsage& phaseUsage, const std::vector& wells_on_proc); - template + template void createWellsFromSpecs( const std::vector& wells, size_t timeStep, const C2F& cell_to_faces, const int* cart_dims, @@ -185,8 +183,6 @@ namespace Opm std::map & well_names_to_index, const PhaseUsage& phaseUsage, const std::map& cartesian_to_compressed, - const double* permeability, - const NTG& ntg, std::vector& wells_on_proc, const std::unordered_set& deactivated_wells); diff --git a/opm/core/wells/WellsManager_impl.hpp b/opm/core/wells/WellsManager_impl.hpp index 364f65407..7c4c5e1e5 100644 --- a/opm/core/wells/WellsManager_impl.hpp +++ b/opm/core/wells/WellsManager_impl.hpp @@ -4,7 +4,6 @@ #include #include #include -#include #include #include #include @@ -101,7 +100,7 @@ getCubeDim(const C2F& c2f, namespace Opm { -template +template void WellsManager::createWellsFromSpecs(const std::vector& wells, size_t timeStep, const C2F& /* c2f */, const int* cart_dims, @@ -113,8 +112,6 @@ void WellsManager::createWellsFromSpecs(const std::vector& wells, size_t t std::map& well_names_to_index, const PhaseUsage& phaseUsage, const std::map& cartesian_to_compressed, - const double* /* permeability */, - const NTG& /* ntg */, std::vector& wells_on_proc, const std::unordered_set& ignored_wells) { @@ -333,12 +330,6 @@ WellsManager::init(const Opm::EclipseState& eclipseState, well_names.reserve(wells.size()); well_data.reserve(wells.size()); - typedef GridPropertyAccess::ArrayPolicy::ExtractFromDeck DoubleArray; - typedef GridPropertyAccess::Compressed NTGArray; - - DoubleArray ntg_glob(eclipseState, "NTG", 1.0); - NTGArray ntg(ntg_glob, global_cell); - const auto& eclGrid = eclipseState.getInputGrid(); // use cell thickness (dz) from eclGrid @@ -351,21 +342,13 @@ WellsManager::init(const Opm::EclipseState& eclipseState, } } - std::vector interleavedPerm; - RockFromDeck::extractInterleavedPermeability(eclipseState, - number_of_cells, - global_cell, - cart_dims, - 0.0, - interleavedPerm); - createWellsFromSpecs(wells, timeStep, cell_to_faces, cart_dims, begin_face_centroids, dimensions, dz, well_names, well_data, well_names_to_index, - pu, cartesian_to_compressed, interleavedPerm.data(), ntg, + pu, cartesian_to_compressed, wells_on_proc, deactivated_wells); setupWellControls(wells, summaryState, well_names, pu, wells_on_proc);