revising the computeWellPotentials in StandardWells

so it compute the potentials for each well instead of each perforation.
This commit is contained in:
Kai Bao
2017-04-05 12:52:07 +02:00
parent 8d96d835b3
commit 72d0d4ddb8
4 changed files with 14 additions and 23 deletions

View File

@@ -820,12 +820,6 @@ typedef Eigen::Array<double,
asImpl().addWellContributionToMassBalanceEq(cq_s, state, well_state);
asImpl().wellModel().addWellControlEq(state, well_state, aliveWells, residual_);
if (param_.compute_well_potentials_) {
SolutionState state0 = state;
asImpl().makeConstantState(state0);
asImpl().wellModel().computeWellPotentials(mob_perfcells, b_perfcells, state0, well_state);
}
return report;
}