From 2f9d5f9e657a4231699660e9eb6a9aadbddb7a3a Mon Sep 17 00:00:00 2001 From: Fredrik Gundersen Date: Tue, 13 Jan 2015 11:24:31 +0100 Subject: [PATCH] added method to enable add of completionset --- opm/parser/eclipse/EclipseState/Schedule/Well.cpp | 4 ++++ opm/parser/eclipse/EclipseState/Schedule/Well.hpp | 1 + 2 files changed, 5 insertions(+) diff --git a/opm/parser/eclipse/EclipseState/Schedule/Well.cpp b/opm/parser/eclipse/EclipseState/Schedule/Well.cpp index 1bc82f2df..76e29594d 100644 --- a/opm/parser/eclipse/EclipseState/Schedule/Well.cpp +++ b/opm/parser/eclipse/EclipseState/Schedule/Well.cpp @@ -212,6 +212,10 @@ namespace Opm { m_completions->add( time_step , newCompletionSet); } + void Well::addCompletionsSet(size_t time_step, const CompletionSetConstPtr newCompletionSet){ + m_completions->add(time_step, newCompletionSet); + } + const std::string Well::getGroupName(size_t time_step) const { return m_groupName->get(time_step); } diff --git a/opm/parser/eclipse/EclipseState/Schedule/Well.hpp b/opm/parser/eclipse/EclipseState/Schedule/Well.hpp index 08c109fae..4da7d9335 100644 --- a/opm/parser/eclipse/EclipseState/Schedule/Well.hpp +++ b/opm/parser/eclipse/EclipseState/Schedule/Well.hpp @@ -74,6 +74,7 @@ namespace Opm { bool isInjector(size_t timeStep) const; void addWELSPECS(DeckRecordConstPtr deckRecord); void addCompletions(size_t time_step , const std::vector& newCompletions); + void addCompletionsSet(size_t time_step, const CompletionSetConstPtr newCompletionSet); CompletionSetConstPtr getCompletions(size_t timeStep) const; void setProductionProperties(size_t timeStep , const WellProductionProperties properties);