mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Merge pull request #3002 from totto82/moveWellOpCheck
move well operability check for STW
This commit is contained in:
@@ -547,6 +547,8 @@ namespace Opm
|
|||||||
WellState& well_state,
|
WellState& well_state,
|
||||||
Opm::DeferredLogger& deferred_logger)
|
Opm::DeferredLogger& deferred_logger)
|
||||||
{
|
{
|
||||||
|
checkWellOperability(ebosSimulator, well_state, deferred_logger);
|
||||||
|
|
||||||
const bool use_inner_iterations = param_.use_inner_iterations_wells_;
|
const bool use_inner_iterations = param_.use_inner_iterations_wells_;
|
||||||
if (use_inner_iterations) {
|
if (use_inner_iterations) {
|
||||||
this->iterateWellEquations(ebosSimulator, B_avg, dt, well_state, deferred_logger);
|
this->iterateWellEquations(ebosSimulator, B_avg, dt, well_state, deferred_logger);
|
||||||
@@ -574,9 +576,6 @@ namespace Opm
|
|||||||
{
|
{
|
||||||
// TODO: only_wells should be put back to save some computation
|
// TODO: only_wells should be put back to save some computation
|
||||||
// for example, the matrices B C does not need to update if only_wells
|
// for example, the matrices B C does not need to update if only_wells
|
||||||
|
|
||||||
checkWellOperability(ebosSimulator, well_state, deferred_logger);
|
|
||||||
|
|
||||||
if (!this->isOperable() && !this->wellIsStopped()) return;
|
if (!this->isOperable() && !this->wellIsStopped()) return;
|
||||||
|
|
||||||
// clear all entries
|
// clear all entries
|
||||||
|
|||||||
Reference in New Issue
Block a user