diff --git a/opm/core/wells/WellsManager.cpp b/opm/core/wells/WellsManager.cpp index 03dd589d..bd253266 100644 --- a/opm/core/wells/WellsManager.cpp +++ b/opm/core/wells/WellsManager.cpp @@ -221,12 +221,11 @@ namespace WellsManagerDetail extent[2] *= ntg; const auto p = directionIndices(direction); - const std::array::size_type d = extent.size(); std::array - D = {{ extent[ p[0]*(d + 1) ] , - extent[ p[1]*(d + 1) ] , - extent[ p[2]*(d + 1) ] }}; + D = {{ extent[ p[0] ] , + extent[ p[1] ] , + extent[ p[2] ] }}; return D; }