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:
Markus Blatt 2015-09-23 09:25:48 +02:00
parent 4353f9c6a6
commit 860bb6eaff

View File

@ -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_);