return well iteration from simulators.

This commit is contained in:
Liu Ming
2016-06-20 16:25:35 +08:00
parent 6dfd5ec63d
commit 969f6f1d1b
7 changed files with 35 additions and 18 deletions

View File

@@ -122,7 +122,8 @@ namespace Opm {
/// \param[in] initial_assembly pass true if this is the first call to assemble() in this timestep
void assemble(const ReservoirState& reservoir_state,
WellState& well_state,
const bool initial_assembly);
const bool initial_assembly,
int& well_iters);
protected:

View File

@@ -492,7 +492,8 @@ namespace Opm {
void
BlackoilPolymerModel<Grid>::assemble(const ReservoirState& reservoir_state,
WellState& well_state,
const bool initial_assembly)
const bool initial_assembly,
int& well_iters)
{
using namespace Opm::AutoDiffGrid;
@@ -537,7 +538,7 @@ namespace Opm {
wellModel().extractWellPerfProperties(state, rq_, mob_perfcells, b_perfcells);
if (param_.solve_welleq_initially_ && initial_assembly) {
// solve the well equations as a pre-processing step
Base::solveWellEq(mob_perfcells, b_perfcells, state, well_state);
Base::solveWellEq(mob_perfcells, b_perfcells, state, well_state, well_iters);
}
V aliveWells;