Removed hack to access StandardWell::addWellContributions.

This commit is contained in:
Markus Blatt 2018-03-05 16:39:25 +01:00
parent 12d2114bd7
commit dc86d972d2
2 changed files with 4 additions and 4 deletions

View File

@ -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);
}
}
}

View File

@ -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