mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
[refactor] Use well_container and PerforationData for tracers
This saves some (expensive?) lookups that already have been done in the well model. We had to make the well_container accessible from the well model for this. Using the perforation data will automatically make sure that the perforations are not shut and reside on this process in a parallel run.
This commit is contained in:
@@ -292,6 +292,12 @@ namespace Opm {
|
||||
|
||||
void initGliftEclWellMap(GLiftEclWells &ecl_well_map);
|
||||
|
||||
/// \brief Get list of local nonshut wells
|
||||
const std::vector<WellInterfacePtr>& localNonshutWells()
|
||||
{
|
||||
return well_container_;
|
||||
}
|
||||
|
||||
protected:
|
||||
Simulator& ebosSimulator_;
|
||||
|
||||
|
||||
@@ -98,6 +98,11 @@ WellInterfaceGeneric::WellInterfaceGeneric(const Well& well,
|
||||
wsolvent_ = 0.0;
|
||||
}
|
||||
|
||||
const std::vector<PerforationData>& WellInterfaceGeneric::perforationData() const
|
||||
{
|
||||
return *perf_data_;
|
||||
}
|
||||
|
||||
const std::string& WellInterfaceGeneric::name() const
|
||||
{
|
||||
return well_ecl_.name();
|
||||
|
||||
@@ -60,6 +60,9 @@ public:
|
||||
const int index_of_well,
|
||||
const std::vector<PerforationData>& perf_data);
|
||||
|
||||
/// \brief Get the perforations of the well
|
||||
const std::vector<PerforationData>& perforationData() const;
|
||||
|
||||
/// Well name.
|
||||
const std::string& name() const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user