Merge pull request #828 from atgeirr/fix-failing-test
Do not use pressure() until after init() in BlackoilState.
This commit is contained in:
commit
db2dfbf047
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user