mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-24 00:10:02 -06:00
setting uninitialized bhp to be bhp_limit in updateWellStateWithTarget
to avoid uninitialized bhp 0. to be used.
This commit is contained in:
parent
8bf45ea86b
commit
529af98ce9
@ -874,6 +874,10 @@ namespace Opm
|
||||
// within the wellbore from the previous result, and hopefully it is a good
|
||||
// initial guess for the zero rate target.
|
||||
ws.surface_rates[phasePos] = std::max(1.e-7, ws.surface_rates[phasePos]);
|
||||
|
||||
if (ws.bhp == 0.) {
|
||||
ws.bhp = controls.bhp_limit;
|
||||
}
|
||||
}
|
||||
//Producer
|
||||
else
|
||||
@ -1096,6 +1100,10 @@ namespace Opm
|
||||
|
||||
break;
|
||||
} // end of switch
|
||||
|
||||
if (ws.bhp == 0.) {
|
||||
ws.bhp = controls.bhp_limit;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user