moving localWellsActive and wellsActive to StandardWells

maybe later it can be something general for different types of wells.
This commit is contained in:
Kai Bao
2016-04-01 14:55:58 +02:00
parent 48483b23c7
commit 3947ff5b1d
8 changed files with 48 additions and 26 deletions

View File

@@ -280,6 +280,10 @@ namespace Opm {
// keeping the underline, later they will be private members
StandardWells(const Wells* wells);
const Wells& wells() const;
// return true if wells are available in the reservoir
bool wellsActive() const;
// return true if wells are available on this process
bool localWellsActive() const;
bool wells_active_;
const Wells* wells_;
const WellOps wops_;
@@ -345,10 +349,6 @@ namespace Opm {
return static_cast<const Implementation&>(*this);
}
// return true if wells are available in the reservoir
bool wellsActive() const { return std_wells_.wells_active_; }
// return true if wells are available on this process
bool localWellsActive() const { return std_wells_.wells_ ? (std_wells_.wells_->number_of_wells > 0 ) : false; }
// return the StandardWells object
StandardWells& stdWells() { return std_wells_; }