Added Schedule::getWells( group, time) overload

The new Schedule::getWells( group, time) overload will recursively scan
th group tree rooted at 'group' and return all the wells in that tree.
This commit is contained in:
Joakim Hove
2017-07-25 19:50:06 +02:00
parent c6f6b078a7
commit 44d4aa64cc
3 changed files with 121 additions and 0 deletions

View File

@@ -75,6 +75,17 @@ namespace Opm
std::vector< const Well* > getOpenWells(size_t timeStep) const;
std::vector< const Well* > getWells() const;
std::vector< const Well* > getWells(size_t timeStep) const;
/*
The overload with a group name argument will return all
wells beneath that particular group; i.e.
getWells("FIELD",t);
is an inefficient way to get all the wells defined at time
't'.
*/
std::vector< const Well* > getWells(const std::string& group, size_t timeStep) const;
std::vector< const Well* > getWellsMatching( const std::string& ) const;
const OilVaporizationProperties& getOilVaporizationProperties(size_t timestep) const;