Modifications to handle additional argument in add_well()

This commit is contained in:
Tor Harald Sandve 2015-10-06 15:40:47 +02:00
parent 1772a8c257
commit 0a5364a1d8
2 changed files with 3 additions and 4 deletions

View File

@ -49,12 +49,11 @@ BOOST_AUTO_TEST_CASE(TestPressureDeltas)
const double comp_frac_o[np] = { 0.0, 1.0, 0.0 }; const double comp_frac_o[np] = { 0.0, 1.0, 0.0 };
const int cells[nperf/2] = { 0, 1, 2, 3, 4 }; const int cells[nperf/2] = { 0, 1, 2, 3, 4 };
const double WI[nperf/2] = { 1.0, 1.0, 1.0, 1.0, 1.0 }; const double WI[nperf/2] = { 1.0, 1.0, 1.0, 1.0, 1.0 };
const bool allow_crossflow = true;
std::shared_ptr<Wells> wells(create_wells(np, 2, nperf), destroy_wells); std::shared_ptr<Wells> wells(create_wells(np, 2, nperf), destroy_wells);
BOOST_REQUIRE(wells); BOOST_REQUIRE(wells);
int ok = add_well(INJECTOR, ref_depth, nperf/2, comp_frac_w, cells, WI, "INJ", allow_crossflow, wells.get()); int ok = add_well(INJECTOR, ref_depth, nperf/2, comp_frac_w, cells, WI, "INJ", true, wells.get());
BOOST_REQUIRE(ok); BOOST_REQUIRE(ok);
ok = add_well(PRODUCER, ref_depth, nperf/2, comp_frac_o, cells, WI, "PROD", allow_crossflow, wells.get()); ok = add_well(PRODUCER, ref_depth, nperf/2, comp_frac_o, cells, WI, "PROD", true, wells.get());
BOOST_REQUIRE(ok); BOOST_REQUIRE(ok);
std::vector<double> rates = { 1.0, 0.0, 0.0, std::vector<double> rates = { 1.0, 0.0, 0.0,
1.0, 0.0, 0.0, 1.0, 0.0, 0.0,