mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-20 11:48:25 -06:00
Merge pull request #954 from GitPaean/fixing_wellsactive_checking
adding localWellsActive() checking for two MSW functions
This commit is contained in:
commit
3887c584f6
@ -348,6 +348,9 @@ namespace Opm
|
|||||||
const SolutionState& state,
|
const SolutionState& state,
|
||||||
WellState& xw) const
|
WellState& xw) const
|
||||||
{
|
{
|
||||||
|
if ( !localWellsActive() ) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
// Update the perforation phase rates (used to calculate the pressure drop in the wellbore).
|
// Update the perforation phase rates (used to calculate the pressure drop in the wellbore).
|
||||||
const int np = numPhases();
|
const int np = numPhases();
|
||||||
const int nw = numWells();
|
const int nw = numWells();
|
||||||
@ -604,6 +607,9 @@ namespace Opm
|
|||||||
const SolutionState& state,
|
const SolutionState& state,
|
||||||
LinearisedBlackoilResidual& residual)
|
LinearisedBlackoilResidual& residual)
|
||||||
{
|
{
|
||||||
|
if ( !localWellsActive() ) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
// the well flux equations are for each segment and each phase.
|
// the well flux equations are for each segment and each phase.
|
||||||
// /delta m_p_n / dt - /sigma Q_pi - /sigma q_pj + Q_pn = 0
|
// /delta m_p_n / dt - /sigma Q_pi - /sigma q_pj + Q_pn = 0
|
||||||
// 1. It is the gain of the amount of the component p in the segment n during the
|
// 1. It is the gain of the amount of the component p in the segment n during the
|
||||||
|
Loading…
Reference in New Issue
Block a user