mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-01-20 01:32:57 -06:00
Removed hack to access StandardWell::addWellContributions.
This commit is contained in:
parent
12d2114bd7
commit
dc86d972d2
@ -155,11 +155,8 @@ namespace Opm {
|
||||
|
||||
void addWellContributions(Mat& mat)
|
||||
{
|
||||
for (int w = 0; w < numWells(); ++w) {
|
||||
auto* well = dynamic_cast<StandardWell<TypeTag>*>(well_container_[w].get());
|
||||
if (well) {
|
||||
for ( const auto& well: well_container_ ) {
|
||||
well->addWellContributions(mat);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -212,6 +212,9 @@ namespace Opm
|
||||
// updating the voidage rates in well_state when requested
|
||||
void calculateReservoirRates(WellState& well_state) const;
|
||||
|
||||
// Add well contributions to matrix
|
||||
virtual void addWellContributions(Mat&) const
|
||||
{}
|
||||
protected:
|
||||
|
||||
// to indicate a invalid connection
|
||||
|
Loading…
Reference in New Issue
Block a user