BlackoilWellModel: move setRepRadiusPerfLength to generic class

This commit is contained in:
Arne Morten Kvarving
2021-06-07 13:04:29 +02:00
parent c5fae280f3
commit 2b9141035e
4 changed files with 11 additions and 17 deletions

View File

@@ -352,9 +352,6 @@ namespace Opm {
void setupCartesianToCompressed_(const int* global_cell, int local_num__cells);
void setRepRadiusPerfLength();
void updateAverageFormationFactor();
// Calculating well potentials for each well

View File

@@ -1637,4 +1637,13 @@ getGenWell(const std::string& well_name)
return *well;
}
void
BlackoilWellModelGeneric::
setRepRadiusPerfLength()
{
for (const auto& well : well_container_generic_) {
well->setRepRadiusPerfLength(cartesian_to_compressed_);
}
}
}

View File

@@ -321,6 +321,8 @@ protected:
void inferLocalShutWells();
void setRepRadiusPerfLength();
const Schedule& schedule_;
const SummaryState& summaryState_;
const EclipseState& eclState_;

View File

@@ -1414,20 +1414,6 @@ namespace Opm {
}
template<typename TypeTag>
void
BlackoilWellModel<TypeTag>::
setRepRadiusPerfLength()
{
for (const auto& well : well_container_) {
well->setRepRadiusPerfLength(cartesian_to_compressed_);
}
}
template<typename TypeTag>
void
BlackoilWellModel<TypeTag>::