Merge pull request #828 from atgeirr/fix-failing-test

Do not use pressure() until after init() in BlackoilState.
This commit is contained in:
Bård Skaflestad 2015-07-08 18:02:12 +02:00
commit db2dfbf047

View File

@ -51,8 +51,9 @@ BOOST_AUTO_TEST_CASE(TestStoppedWells)
double target_surfacerate_inj;
double target_surfacerate_prod;
BlackoilState state;
const std::vector<double> pressure = {1, 1, 1, 1, 1, 1, 1, 1, 1, 1};
BlackoilState state;
state.init(pressure.size(), 0, 3);
state.pressure() = pressure;
// Both wells are open in the first schedule step