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
4353f9c6a6
commit
860bb6eaff
@ -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