mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Do not use pressure() until after init() in BlackoilState.
This commit is contained in:
parent
d3962fb7cf
commit
7b9bdb6017
@ -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