mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-10-26 07:30:08 -05: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:
1 parent
8163137b2c
commit
e2e9ea1bf5
1 file changed
+2
-2
@@ -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_);
|
||||
|
||||
|
||||
Reference in new issue
Block a user