Address review comment: do not call data() needlessly.

This commit is contained in:
Atgeirr Flø Rasmussen
2018-07-02 00:08:16 +02:00
parent 6eb363e8e1
commit 1e4e565380

View File

@@ -742,7 +742,7 @@ namespace Opm {
std::vector<double> y(8,0);
std::vector<double> z(8,0);
for (int i=0; i < 8; i++) {
ecl_grid_get_cell_corner_xyz1(c_ptr(), static_cast<int>(globalIndex), i, &x.data()[i], &y.data()[i], &z.data()[i]);
ecl_grid_get_cell_corner_xyz1(c_ptr(), static_cast<int>(globalIndex), i, &x[i], &y[i], &z[i]);
}
volume_cache[globalIndex] = calculateCellVol(x,y,z);
}