WellTestState::hasWellClosed -> WellTestState::well_is_closed

This commit is contained in:
Joakim Hove
2021-10-07 15:18:53 +02:00
parent 52b2c096a2
commit d806762f7a
4 changed files with 7 additions and 7 deletions

View File

@@ -1325,7 +1325,7 @@ assignShutConnections(data::Wells& wsrpt,
return wellIsOpen && (conn.state() != Connection::State::SHUT);
};
if (this->wellTestState().hasWellClosed(well.name()) &&
if (this->wellTestState().well_is_closed(well.name()) &&
!this->wasDynamicallyShutThisTimeStep(wellID))
{
xwel.dynamicStatus = well.getAutomaticShutIn()

View File

@@ -599,7 +599,7 @@ namespace Opm {
}
// A new WCON keywords can re-open a well that was closed/shut due to Physical limit
if (this->wellTestState().hasWellClosed(well_name)) {
if (this->wellTestState().well_is_closed(well_name)) {
// TODO: more checking here, to make sure this standard more specific and complete
// maybe there is some WCON keywords will not open the well
auto& events = this->wellState().well(w).events;
@@ -620,7 +620,7 @@ namespace Opm {
// TODO: should we do this for all kinds of closing reasons?
// something like wellTestState().hasWell(well_name)?
bool wellIsStopped = false;
if (wellTestState().hasWellClosed(well_name))
if (wellTestState().well_is_closed(well_name))
{
if (well_ecl.getAutomaticShutIn()) {
// shut wells are not added to the well container
@@ -1294,11 +1294,11 @@ namespace Opm {
DeferredLogger local_deferredLogger;
for (const auto& well : well_container_) {
const auto& wname = well->name();
const auto wasClosed = wellTestState.hasWellClosed(wname);
const auto wasClosed = wellTestState.well_is_closed(wname);
well->checkWellOperability(ebosSimulator_, this->wellState(), local_deferredLogger);
well->updateWellTestState(this->wellState().well(wname), simulationTime, /*writeMessageToOPMLog=*/ true, wellTestState, local_deferredLogger);
if (!wasClosed && wellTestState.hasWellClosed(wname)) {
if (!wasClosed && wellTestState.well_is_closed(wname)) {
this->closed_this_step_.insert(wname);
}
}

View File

@@ -353,7 +353,7 @@ void WellInterfaceGeneric::updateWellTestStatePhysical(const double simulation_t
DeferredLogger& deferred_logger) const
{
if (!isOperableAndSolvable()) {
if (well_test_state.hasWellClosed(name())) {
if (well_test_state.well_is_closed(name())) {
// Already closed, do nothing.
} else {
well_test_state.close_well(name(), WellTestConfig::Reason::PHYSICAL, simulation_time);

View File

@@ -298,7 +298,7 @@ namespace Opm
}
// update wellTestState if the well test succeeds
if (!welltest_state_temp.hasWellClosed(this->name())) {
if (!welltest_state_temp.well_is_closed(this->name())) {
well_test_state.openWell(this->name());
std::string msg = std::string("well ") + this->name() + std::string(" is re-opened");