mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-18 21:43:27 -06:00
Prevent WellsManager from subscripting empty container.
While hopefully not a bug it raises an exception with gcc's libc debugging mode. Therefore we resort to using C++11's std::vector::data instead. The exception was rosen when running SPE9 in parallel.
This commit is contained in:
parent
8163137b2c
commit
e2e9ea1bf5
@ -289,8 +289,8 @@ void WellsManager::createWellsFromSpecs(std::vector<WellConstPtr>& wells, size_t
|
||||
well_data[w].reference_bhp_depth,
|
||||
w_num_perf,
|
||||
comp_frac,
|
||||
& perf_cells [0],
|
||||
& perf_prodind[0],
|
||||
perf_cells.data(),
|
||||
perf_prodind.data(),
|
||||
well_names[w].c_str(),
|
||||
w_);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user