Do not use pressure() until after init() in BlackoilState.

This commit is contained in:
Atgeirr Flø Rasmussen
2015-07-08 17:58:38 +02:00
parent 959e4e95b3
commit 59c344204e

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