mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
changing dx to dwells in defination of updateWellState
This commit is contained in:
@@ -359,7 +359,7 @@ namespace Opm {
|
||||
|
||||
void updateWellControls(WellState& xw) const;
|
||||
|
||||
void updateWellState(const V& dx,
|
||||
void updateWellState(const V& dwells,
|
||||
WellState& well_state);
|
||||
|
||||
bool getWellConvergence(const int iteration);
|
||||
|
||||
@@ -1668,7 +1668,8 @@ namespace detail {
|
||||
|
||||
|
||||
template <class Grid, class Implementation>
|
||||
void BlackoilModelBase<Grid, Implementation>::updateWellState(const V& dx,
|
||||
void
|
||||
BlackoilModelBase<Grid, Implementation>::updateWellState(const V& dwells,
|
||||
WellState& well_state)
|
||||
{
|
||||
|
||||
@@ -1677,13 +1678,13 @@ namespace detail {
|
||||
const int np = wells().number_of_phases;
|
||||
const int nw = wellsActive() ? wells().number_of_wells : 0;
|
||||
|
||||
// Extract parts of dx corresponding to each part.
|
||||
// Extract parts of dwells corresponding to each part.
|
||||
int varstart = 0;
|
||||
const V dqs = subset(dx, Span(np*nw, 1, varstart));
|
||||
const V dqs = subset(dwells, Span(np*nw, 1, varstart));
|
||||
varstart += dqs.size();
|
||||
const V dbhp = subset(dx, Span(nw, 1, varstart));
|
||||
const V dbhp = subset(dwells, Span(nw, 1, varstart));
|
||||
varstart += dbhp.size();
|
||||
assert(varstart == dx.size());
|
||||
assert(varstart == dwells.size());
|
||||
const double dpmaxrel = dpMaxRel();
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user