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 d3962fb7cf
commit 7b9bdb6017

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