From 4d57b641a895718b84793f7572da77e6aed9ecf0 Mon Sep 17 00:00:00 2001 From: Kai Bao Date: Fri, 30 Sep 2016 12:59:10 +0200 Subject: [PATCH] adding a non-const wellCollection() in WellsManager. For the WellModel from the simulator to use. Not decided totally, well_collection might need to be updated during the simualtion due to the update the target of wells. --- opm/core/wells/WellsManager.cpp | 6 ++++++ opm/core/wells/WellsManager.hpp | 1 + 2 files changed, 7 insertions(+) diff --git a/opm/core/wells/WellsManager.cpp b/opm/core/wells/WellsManager.cpp index 760324a46..94700cceb 100644 --- a/opm/core/wells/WellsManager.cpp +++ b/opm/core/wells/WellsManager.cpp @@ -373,6 +373,12 @@ namespace Opm return well_collection_; } + WellCollection& WellsManager::wellCollection() { + return well_collection_; + + } + + bool WellsManager::conditionsMet(const std::vector& well_bhp, const std::vector& well_reservoirrates_phase, const std::vector& well_surfacerates_phase) diff --git a/opm/core/wells/WellsManager.hpp b/opm/core/wells/WellsManager.hpp index 4db577c44..e90758621 100644 --- a/opm/core/wells/WellsManager.hpp +++ b/opm/core/wells/WellsManager.hpp @@ -114,6 +114,7 @@ namespace Opm /// Access the well group hierarchy. const WellCollection& wellCollection() const; + WellCollection& wellCollection(); /// Checks if each condition is met, applies well controls where needed /// (that is, it either changes the active control of violating wells, or shuts