Use cell depth calculated directly from the corners of the cell

This commit is contained in:
Tor Harald Sandve 2015-11-24 10:06:05 +01:00
parent aeb8807d89
commit 2a13275943

View File

@ -143,7 +143,7 @@ namespace Opm
// Compute z coordinates
for (int c = 0; c<numCells; ++c){
z_[c] = Opm::UgGridHelpers::cellCentroidCoordinate(grid, c, 2);
z_[c] = Opm::UgGridHelpers::cellCenterDepth(grid, c);
}