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:
@@ -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.
|
/// Access the managed Wells.
|
||||||
|
|||||||
@@ -53,7 +53,9 @@ namespace Opm
|
|||||||
|
|
||||||
/// Destructor.
|
/// Destructor.
|
||||||
~WellsManager();
|
~WellsManager();
|
||||||
|
|
||||||
|
/// Does the "deck" define any wells?
|
||||||
|
bool empty() const;
|
||||||
|
|
||||||
/// Access the managed Wells.
|
/// Access the managed Wells.
|
||||||
/// The method is named similarly to c_str() in std::string,
|
/// The method is named similarly to c_str() in std::string,
|
||||||
|
|||||||
Reference in New Issue
Block a user