camelCased property attributes in the production and injection properties structures.
This commit is contained in:
@@ -121,13 +121,13 @@ BOOST_AUTO_TEST_CASE(WellTesting) {
|
||||
{
|
||||
WellPtr well1 = sched->getWell("W_1");
|
||||
|
||||
BOOST_CHECK(well1->getProductionPropertiesCopy(0).PredictionMode);
|
||||
BOOST_CHECK(well1->getProductionPropertiesCopy(0).predictionMode);
|
||||
BOOST_CHECK_EQUAL(0, well1->getProductionPropertiesCopy(0).OilRate);
|
||||
|
||||
BOOST_CHECK_EQUAL(0, well1->getProductionPropertiesCopy(1).OilRate);
|
||||
BOOST_CHECK_EQUAL(0, well1->getProductionPropertiesCopy(2).OilRate);
|
||||
|
||||
BOOST_CHECK(!well1->getProductionPropertiesCopy(3).PredictionMode);
|
||||
BOOST_CHECK(!well1->getProductionPropertiesCopy(3).predictionMode);
|
||||
BOOST_CHECK_CLOSE(4000/Metric::Time , well1->getProductionPropertiesCopy(3).OilRate , 0.001);
|
||||
BOOST_CHECK_CLOSE(4000/Metric::Time , well1->getProductionPropertiesCopy(4).OilRate , 0.001);
|
||||
BOOST_CHECK_CLOSE(4000/Metric::Time , well1->getProductionPropertiesCopy(5).OilRate , 0.001);
|
||||
@@ -139,26 +139,26 @@ BOOST_AUTO_TEST_CASE(WellTesting) {
|
||||
BOOST_CHECK_CLOSE(12345/Metric::Time , well1->getProductionPropertiesCopy(5).GasRate , 0.001);
|
||||
|
||||
|
||||
BOOST_CHECK(!well1->getProductionPropertiesCopy(6).PredictionMode);
|
||||
BOOST_CHECK(!well1->getProductionPropertiesCopy(6).predictionMode);
|
||||
BOOST_CHECK_CLOSE(14000/Metric::Time , well1->getProductionPropertiesCopy(6).OilRate , 0.001);
|
||||
|
||||
BOOST_CHECK(well1->getProductionPropertiesCopy(7).PredictionMode);
|
||||
BOOST_CHECK(well1->getProductionPropertiesCopy(7).predictionMode);
|
||||
BOOST_CHECK_CLOSE(11000/Metric::Time , well1->getProductionPropertiesCopy(7).OilRate , 0.001);
|
||||
BOOST_CHECK_CLOSE(44/Metric::Time , well1->getProductionPropertiesCopy(7).WaterRate , 0.001);
|
||||
BOOST_CHECK_CLOSE(188/Metric::Time , well1->getProductionPropertiesCopy(7).GasRate , 0.001);
|
||||
|
||||
BOOST_CHECK(!well1->getProductionPropertiesCopy(8).PredictionMode);
|
||||
BOOST_CHECK(!well1->getProductionPropertiesCopy(8).predictionMode);
|
||||
BOOST_CHECK_CLOSE(13000/Metric::Time , well1->getProductionPropertiesCopy(8).OilRate , 0.001);
|
||||
|
||||
BOOST_CHECK( well1->isInjector(9));
|
||||
BOOST_CHECK_CLOSE(20000/Metric::Time , well1->getInjectionPropertiesCopy(9).SurfaceInjectionRate, 0.001);
|
||||
BOOST_CHECK_CLOSE(200000/Metric::Time, well1->getInjectionPropertiesCopy(9).ReservoirInjectionRate, 0.001);
|
||||
BOOST_CHECK_CLOSE(20000/Metric::Time , well1->getInjectionPropertiesCopy(9).surfaceInjectionRate, 0.001);
|
||||
BOOST_CHECK_CLOSE(200000/Metric::Time, well1->getInjectionPropertiesCopy(9).reservoirInjectionRate, 0.001);
|
||||
BOOST_CHECK_CLOSE(6891 * Metric::Pressure , well1->getInjectionPropertiesCopy(9).BHPLimit, 0.001);
|
||||
BOOST_CHECK_CLOSE(0 , well1->getInjectionPropertiesCopy(9).THPLimit , 0.001);
|
||||
BOOST_CHECK_CLOSE(123.00 * Metric::Pressure , well1->getInjectionPropertiesCopy(10).BHPLimit, 0.001);
|
||||
BOOST_CHECK_CLOSE(678.00 * Metric::Pressure , well1->getInjectionPropertiesCopy(10).THPLimit, 0.001);
|
||||
|
||||
BOOST_CHECK_CLOSE(5000/Metric::Time , well1->getInjectionPropertiesCopy(11).SurfaceInjectionRate, 0.001);
|
||||
BOOST_CHECK_CLOSE(5000/Metric::Time , well1->getInjectionPropertiesCopy(11).surfaceInjectionRate, 0.001);
|
||||
|
||||
BOOST_CHECK_EQUAL( WellInjector::RESV , well1->getInjectorControlMode( 9 ));
|
||||
BOOST_CHECK_EQUAL( WellInjector::RATE , well1->getInjectorControlMode( 11 ));
|
||||
|
||||
Reference in New Issue
Block a user