mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Add a query method to answer whether or not the deck defines any wells.
This commit is contained in:
parent
ece387d1ae
commit
eda46d4fbe
@ -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.
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user