mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Remove unused function argument
This commit is contained in:
parent
2f94f0436b
commit
122678e5ea
@ -511,10 +511,10 @@ WellState::report(const int* globalCellIdxMap,
|
|||||||
gatherVectorsOnRoot(connections, well.connections, pwinfo.communication());
|
gatherVectorsOnRoot(connections, well.connections, pwinfo.communication());
|
||||||
}
|
}
|
||||||
|
|
||||||
const auto nseg = this->numSegments(well_index);
|
const auto nseg = ws.segments.size();
|
||||||
for (auto seg_ix = 0*nseg; seg_ix < nseg; ++seg_ix) {
|
for (auto seg_ix = 0*nseg; seg_ix < nseg; ++seg_ix) {
|
||||||
const auto seg_no = this->segmentNumber(well_index, seg_ix);
|
const auto seg_no = ws.segments.segment_number()[seg_ix];
|
||||||
well.segments[seg_no] = this->reportSegmentResults(pu, well_index, seg_ix, seg_no);
|
well.segments[seg_no] = this->reportSegmentResults(well_index, seg_ix, seg_no);
|
||||||
}
|
}
|
||||||
|
|
||||||
res.insert( {wname, well} );
|
res.insert( {wname, well} );
|
||||||
@ -837,8 +837,7 @@ void WellState::updateGlobalIsGrup(const Comm& comm)
|
|||||||
}
|
}
|
||||||
|
|
||||||
data::Segment
|
data::Segment
|
||||||
WellState::reportSegmentResults(const PhaseUsage& pu,
|
WellState::reportSegmentResults(const int well_id,
|
||||||
const int well_id,
|
|
||||||
const int seg_ix,
|
const int seg_ix,
|
||||||
const int seg_no) const
|
const int seg_no) const
|
||||||
{
|
{
|
||||||
@ -857,6 +856,7 @@ WellState::reportSegmentResults(const PhaseUsage& pu,
|
|||||||
segpress[Value::PDropAccel] = segments.pressure_drop_accel[seg_ix];
|
segpress[Value::PDropAccel] = segments.pressure_drop_accel[seg_ix];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const auto& pu = this->phaseUsage();
|
||||||
const auto rate = &segments.rates[seg_ix * pu.num_phases];
|
const auto rate = &segments.rates[seg_ix * pu.num_phases];
|
||||||
if (pu.phase_used[Water]) {
|
if (pu.phase_used[Water]) {
|
||||||
seg_res.rates.set(data::Rates::opt::wat,
|
seg_res.rates.set(data::Rates::opt::wat,
|
||||||
|
@ -273,8 +273,7 @@ private:
|
|||||||
std::map<std::string, std::pair<bool, std::vector<double>>> well_rates;
|
std::map<std::string, std::pair<bool, std::vector<double>>> well_rates;
|
||||||
|
|
||||||
data::Segment
|
data::Segment
|
||||||
reportSegmentResults(const PhaseUsage& pu,
|
reportSegmentResults(const int well_id,
|
||||||
const int well_id,
|
|
||||||
const int seg_ix,
|
const int seg_ix,
|
||||||
const int seg_no) const;
|
const int seg_no) const;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user