Renaming well is shut to well is stopped.

Rename the the meaning for shut as whats used in Eclipse.
STOP: Well stopped off above the formation. I.e. allow for flow in the
well.
SHUT: Well completely isolated from the formation. The well is removed
from the well list.
This commit is contained in:
Tor Harald Sandve
2014-11-18 08:32:55 +01:00
parent d50ec0d4d1
commit 82eafbb510
10 changed files with 16 additions and 16 deletions

View File

@@ -81,7 +81,7 @@ BOOST_AUTO_TEST_CASE(TestStoppedWells)
const Wells* wells = wellsManager.c_wells();
const struct WellControls* ctrls0 = wells->ctrls[0];
const struct WellControls* ctrls1 = wells->ctrls[1];
BOOST_CHECK(well_controls_well_is_shut(ctrls0)); // injector is stopped
BOOST_CHECK(well_controls_well_is_stopped(ctrls0)); // injector is stopped
BOOST_CHECK(well_controls_well_is_open(ctrls1));
WellState wellstate;

View File

@@ -103,15 +103,15 @@ BOOST_AUTO_TEST_CASE(OpenClose)
struct WellControls * ctrls = well_controls_create();
BOOST_CHECK_EQUAL( true , well_controls_well_is_open(ctrls) );
BOOST_CHECK_EQUAL( false , well_controls_well_is_shut(ctrls) );
BOOST_CHECK_EQUAL( false , well_controls_well_is_stopped(ctrls) );
well_controls_open_well( ctrls );
BOOST_CHECK_EQUAL( true , well_controls_well_is_open(ctrls) );
BOOST_CHECK_EQUAL( false , well_controls_well_is_shut(ctrls) );
BOOST_CHECK_EQUAL( false , well_controls_well_is_stopped(ctrls) );
well_controls_shut_well( ctrls );
well_controls_stop_well( ctrls );
BOOST_CHECK_EQUAL( false , well_controls_well_is_open(ctrls) );
BOOST_CHECK_EQUAL( true , well_controls_well_is_shut(ctrls) );
BOOST_CHECK_EQUAL( true , well_controls_well_is_stopped(ctrls) );
well_controls_destroy( ctrls );
}

View File

@@ -294,6 +294,6 @@ BOOST_AUTO_TEST_CASE(WellSTOPOK) {
const struct WellControls* ctrls0 = wells->ctrls[0];
const struct WellControls* ctrls1 = wells->ctrls[1];
BOOST_CHECK(well_controls_well_is_shut(ctrls0)); // The first well is closed
BOOST_CHECK(well_controls_well_is_stopped(ctrls0)); // The first well is closed
BOOST_CHECK(well_controls_well_is_open(ctrls1)); // The second well is open
}