Schedule::getWell const support
This commit is contained in:
@@ -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 ==
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user