mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
adding hasTable() method to the VFP properties
and give a clear message about non-accessible table ID in the function isVFPActive() in WellInterface.
This commit is contained in:
@@ -557,6 +557,15 @@ const T* getTable(const std::map<int, T*> tables, int table_id) {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Check whether we have a table with the table number
|
||||
*/
|
||||
template <typename T>
|
||||
bool hasTable(const std::map<int, T*> tables, int table_id) {
|
||||
const auto entry = tables.find(table_id);
|
||||
return (entry != tables.end() );
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Returns the type variable for FLO/GFR/WFR for production tables
|
||||
|
||||
Reference in New Issue
Block a user