Add a query method to answer whether or not the deck defines any wells.

This commit is contained in:
Bård Skaflestad 2012-05-09 16:09:13 +02:00
parent a3b5e11ecc
commit f90a451370
2 changed files with 9 additions and 1 deletions

View File

@ -672,6 +672,12 @@ namespace Opm
}
/// Does the "deck" define any wells?
bool WellsManager::empty() const
{
return (w_ == 0) || (w_->number_of_wells == 0);
}
/// Access the managed Wells.

View File

@ -53,7 +53,9 @@ namespace Opm
/// Destructor.
~WellsManager();
/// Does the "deck" define any wells?
bool empty() const;
/// Access the managed Wells.
/// The method is named similarly to c_str() in std::string,