mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Merge pull request #2256 from atgeirr/fix-msw-wefac
Bugfix: correct well efficiency factors for MSW
This commit is contained in:
commit
38a094d0a8
@ -2856,7 +2856,7 @@ namespace Opm
|
||||
// considering the contributions due to flowing out from the segment
|
||||
{
|
||||
for (int comp_idx = 0; comp_idx < num_components_; ++comp_idx) {
|
||||
const EvalWell segment_rate = getSegmentRateUpwinding(seg, comp_idx);
|
||||
const EvalWell segment_rate = getSegmentRateUpwinding(seg, comp_idx) * well_efficiency_factor_;
|
||||
|
||||
const int seg_upwind = upwinding_segments_[seg];
|
||||
// segment_rate contains the derivatives with respect to GTotal in seg,
|
||||
@ -2873,7 +2873,7 @@ namespace Opm
|
||||
{
|
||||
for (const int inlet : segment_inlets_[seg]) {
|
||||
for (int comp_idx = 0; comp_idx < num_components_; ++comp_idx) {
|
||||
const EvalWell inlet_rate = getSegmentRateUpwinding(inlet, comp_idx);
|
||||
const EvalWell inlet_rate = getSegmentRateUpwinding(inlet, comp_idx) * well_efficiency_factor_;
|
||||
|
||||
const int inlet_upwind = upwinding_segments_[inlet];
|
||||
// inlet_rate contains the derivatives with respect to GTotal in inlet,
|
||||
|
Loading…
Reference in New Issue
Block a user