Schedule::getWell const support

This commit is contained in:
Jørgen Kvalsvik
2016-03-29 14:13:54 +02:00
parent 2ed88df0db
commit 2e58d42ad0
2 changed files with 5 additions and 0 deletions

View File

@@ -1497,6 +1497,10 @@ namespace Opm {
return m_wells.get( wellName );
}
const Well& Schedule::getWell(const std::string& wellName) const {
return *m_wells.get( wellName );
}
/*
Observe that this method only returns wells which have state ==

View File

@@ -63,6 +63,7 @@ namespace Opm
size_t getMaxNumCompletionsForWells(size_t timestep) const;
bool hasWell(const std::string& wellName) const;
std::shared_ptr< Well > getWell(const std::string& wellName);
const Well& getWell(const std::string& wellName) const;
std::vector<std::shared_ptr< Well >> getOpenWells(size_t timeStep);
std::vector<std::shared_ptr< const Well >> getWells() const;
std::vector<std::shared_ptr< const Well >> getWells(size_t timeStep) const;